🐛 Fixes copy link
This commit is contained in:
1 parent
8d32e89281
commit
497ada7391
1 file changed
+1
-1
+1
-1
@@ -354,7 +354,7 @@
|
||||
}
|
||||
|
||||
function copyLink(id) {
|
||||
navigator.clipboard.writeText(`http://localhost:8000/image/${id}`).catch((err) => alert(`Couldn't copy: ${err}`));
|
||||
navigator.clipboard.writeText(`${window.location.origin}/image/${id}`).catch((err) => alert(`Couldn't copy: ${err}`));
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
Reference in new issue
Block a user