From 183c41b64e1501113b01779c4ceec88c3485260b Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Wed, 15 May 2024 19:23:14 +0500 Subject: [PATCH] update links --- src/index.html | 8 ++++---- src/js/main.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.html b/src/index.html index bdfedc2..8739865 100644 --- a/src/index.html +++ b/src/index.html @@ -40,13 +40,13 @@
diff --git a/src/js/main.js b/src/js/main.js index dec3d14..8a723ac 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -62,9 +62,9 @@ function notify(text = "Lorem ipsum dolor sit amet", type = null, time = 3000) { }, time); } -function copy(content, textToNotify = "Copied to clipboard!") { +function copy(content, textToNotify = "Copied to clipboard!", type, time) { navigator.clipboard.writeText(content); - notify(textToNotify, false, 1000); + notify(textToNotify, type, time); return false; // prevent the context menu from being opened }