Skip to content

best way to save what you love

little fix

wukkod75d29896aff
diff --git a/src/front/cobalt.js b/src/front/cobalt.js
index 39e9f592..ec697219 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")