From 0836b52719ac08e86d4ee69df9081fc8e54dc9bd Mon Sep 17 00:00:00 2001 From: kappa118 Date: Fri, 28 Feb 2025 14:47:02 -0500 Subject: [PATCH] proper links to copy --- frontend/src/components/tables/ChannelsTable.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/tables/ChannelsTable.js b/frontend/src/components/tables/ChannelsTable.js index e9df2030..95476e0c 100644 --- a/frontend/src/components/tables/ChannelsTable.js +++ b/frontend/src/components/tables/ChannelsTable.js @@ -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({