From d75d29896affcb517f45dd2eb354483593c312fc Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 28 Sep 2022 18:24:44 +0600 Subject: [PATCH] little fix --- src/front/cobalt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/front/cobalt.js b/src/front/cobalt.js index 39e9f59..ec69721 100644 --- a/src/front/cobalt.js +++ b/src/front/cobalt.js @@ -217,7 +217,7 @@ function toggle(toggl) { } function loadSettings() { try { - typeof(navigator.clipboard.readText) + if (typeof(navigator.clipboard.readText) == "undefined") throw new Error(); } catch (err) { eid("disableClipboardButton-chkbx").style.display = "none"; sSet("disableClipboardButton", "true")