From 8a8a5214e417d068a129d24315d55b6385a3cea8 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sat, 4 Dec 2021 22:28:18 -0700 Subject: [PATCH] Fix clipboard --- www/assets/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/assets/js/main.js b/www/assets/js/main.js index 1a91e00..3b8cec8 100644 --- a/www/assets/js/main.js +++ b/www/assets/js/main.js @@ -175,7 +175,7 @@ $("body").on("click", ".copyonclick", function () { // prevent copying copied text if double-clicked return; } - navigator.clipboard.writeText(copytext).then(() => { + copyToClipboard(copytext, function () { copyitem.text("Copied!"); setTimeout(function () { copyitem.text(copytext);