@@ -15,6 +15,7 @@ import { getSharedArchives, setSharedArchives } from "./localstorage";
1515import { webtorrentClient as client } from "./global-webtorrent" ;
1616import { state } from "lit/decorators.js" ;
1717import { isUrlInSkipList } from "./utils" ;
18+ import { REPLAY_BASE_URL } from "./consts" ;
1819
1920import {
2021 getLocalOption ,
@@ -512,15 +513,20 @@ class ArgoViewer extends LitElement {
512513 const magnetURI = torrent . magnetURI ;
513514 console . log ( "Seeding WACZ file via WebTorrent:" , magnetURI ) ;
514515
516+ const replayLink = `${ REPLAY_BASE_URL } /?source=${ encodeURIComponent (
517+ magnetURI ,
518+ ) } `;
515519 // Copy to clipboard
516520 navigator . clipboard
517- . writeText ( magnetURI )
521+ . writeText ( replayLink )
518522 . then ( ( ) => {
519- alert ( `Magnet link copied to clipboard:\n${ magnetURI } ` ) ;
523+ alert (
524+ `ReplayWeb.page copied to clipboard (just paste it in the address bar):\n${ replayLink } ` ,
525+ ) ;
520526 } )
521527 . catch ( ( err ) => {
522528 console . error ( "Failed to copy magnet link:" , err ) ;
523- alert ( `Magnet Link Ready:\n${ magnetURI } ` ) ;
529+ alert ( `ReplayWeb.page Ready:\n${ replayLink } ` ) ;
524530 } ) ;
525531
526532 const existing = await getSharedArchives ( ) ;
@@ -1108,14 +1114,21 @@ class ArgoViewer extends LitElement {
11081114 </ div >
11091115
11101116 < div style ="display:flex; align-items:center; ">
1111- < md-icon-button aria-label ="Download " @click =${ this . onDownload }
1117+ < md-icon-button
1118+ aria-label ="Export selected "
1119+ title ="Export selected "
1120+ @click =${ this . onDownload }
11121121 > < md-icon > download</ md-icon > </ md-icon-button
11131122 >
1114- < md-icon-button aria-label ="Share " @click =${ this . onShareSelected }
1123+ < md-icon-button
1124+ aria-label ="Share selected "
1125+ title ="Share selected "
1126+ @click =${ this . onShareSelected }
11151127 > < md-icon > share</ md-icon > </ md-icon-button
11161128 >
11171129 < md-icon-button
1118- aria-label ="Delete "
1130+ aria-label ="Delete selected "
1131+ title ="Delete selected "
11191132 @click =${ this . onDeleteSelected }
11201133 > < md-icon > delete</ md-icon > </ md-icon-button
11211134 >
@@ -1224,7 +1237,11 @@ class ArgoViewer extends LitElement {
12241237 `
12251238 }
12261239
1227- < md-icon-button aria-label ="Settings " @click =${ this . _toggleSettings } >
1240+ < md-icon-button
1241+ aria-label ="Settings "
1242+ title ="Settings "
1243+ @click =${ this . _toggleSettings }
1244+ >
12281245 < md-icon > settings</ md-icon >
12291246 </ md-icon-button >
12301247 </ div >
0 commit comments