diff --git a/comet/templates/index.html b/comet/templates/index.html
index a9611e8..c2d95cd 100644
--- a/comet/templates/index.html
+++ b/comet/templates/index.html
@@ -640,9 +640,16 @@
copyLinkButton.addEventListener("click", () => {
const settings = getSettings();
- navigator.clipboard.writeText(`${window.location.origin}/${btoa(JSON.stringify(settings))}/manifest.json`).then(() => {
- copyAlert.toast();
- });
+
+ const textArea = document.createElement("textarea");
+ textArea.value = `${window.location.origin}/${btoa(JSON.stringify(settings))}/manifest.json`;
+ document.body.appendChild(textArea);
+ textArea.focus();
+ textArea.select();
+ document.execCommand("copy");
+ document.body.removeChild(textArea);
+
+ copyAlert.toast();
});
installButton.addEventListener("click", () => {