From d1466ad2f2d11a95bd5704d25af61ccae570c3f2 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 4 Mar 2024 15:02:13 +0100 Subject: [PATCH] Show error to old browsers, instead of crashing --- dev/boot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/boot.js b/dev/boot.js index 1ca127e04..eed775739 100644 --- a/dev/boot.js +++ b/dev/boot.js @@ -3,7 +3,7 @@ const qUri = path => doc.location.pathname.replace(/\/+$/,'') + '/?/' + path, eId = id => doc.getElementById('rl-'+id), - admin = '1' == eId('app')?.dataset?.admin, + admin = '1' == eId('app').dataset.admin, toggle = div => { eId('loading').hidden = true; @@ -69,7 +69,7 @@ window.rl = { headers: {} }, init); let asJSON = 1, - XToken = RL_APP_DATA.System?.token, + XToken = (RL_APP_DATA.System || {}).token, object = {}; if (postData) { init.method = 'POST';