We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb90609 commit c45f252Copy full SHA for c45f252
1 file changed
src/sidepanel.ts
@@ -218,7 +218,16 @@ class ArgoViewer extends LitElement {
218
const magnetURI = torrent.magnetURI;
219
console.log("Seeding WACZ file via WebTorrent:", magnetURI);
220
221
- alert(`Magnet Link Ready:\n${magnetURI}`);
+ // Copy to clipboard
222
+ navigator.clipboard
223
+ .writeText(magnetURI)
224
+ .then(() => {
225
+ alert(`Magnet link copied to clipboard:\n${magnetURI}`);
226
+ })
227
+ .catch((err) => {
228
+ console.error("Failed to copy magnet link:", err);
229
+ alert(`Magnet Link Ready:\n${magnetURI}`);
230
+ });
231
});
232
}
233
0 commit comments