🐛 Fixes copy link
This commit is contained in:
@@ -354,7 +354,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function copyLink(id) {
|
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();
|
init();
|
||||||
|
|||||||
Reference in New Issue
Block a user