From f3d83fd68ab2458f0a24fb242e557b95c1294bb1 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Sun, 18 Sep 2022 22:25:18 +0300 Subject: add read access to settings for jsavascript add an option to disable lightbox modal --- script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'script.js') diff --git a/script.js b/script.js index 1a258cd9..a1b93ae9 100644 --- a/script.js +++ b/script.js @@ -9,7 +9,11 @@ function onUiUpdate(callback){ function uiUpdate(root){ uiUpdateCallbacks.forEach(function(x){ - x() + try { + x() + } catch (e) { + (console.error || console.log).call(console, e.message, e); + } }) } -- cgit v1.2.3