proper links to copy

This commit is contained in:
kappa118 2025-02-28 14:47:02 -05:00
parent bce5350467
commit 0836b52719

View file

@ -168,17 +168,23 @@ const Example = () => {
const copyM3UUrl = async (event) => {
setAnchorEl(event.currentTarget);
setTextToCopy('m3u url');
setTextToCopy(
`${window.location.protocol}//${window.location.host}/output/m3u`
);
};
const copyEPGUrl = async (event) => {
setAnchorEl(event.currentTarget);
setTextToCopy('epg url');
setTextToCopy(
`${window.location.protocol}//${window.location.host}/output/epg`
);
};
const copyHDHRUrl = async (event) => {
setAnchorEl(event.currentTarget);
setTextToCopy('hdhr url');
setTextToCopy(
`${window.location.protocol}//${window.location.host}/output/hdhr`
);
};
const table = useMaterialReactTable({