Show error to old browsers, instead of crashing

This commit is contained in:
the-djmaze 2024-03-04 15:02:13 +01:00
parent 574fd820a6
commit d1466ad2f2

View file

@ -3,7 +3,7 @@
const const
qUri = path => doc.location.pathname.replace(/\/+$/,'') + '/?/' + path, qUri = path => doc.location.pathname.replace(/\/+$/,'') + '/?/' + path,
eId = id => doc.getElementById('rl-'+id), eId = id => doc.getElementById('rl-'+id),
admin = '1' == eId('app')?.dataset?.admin, admin = '1' == eId('app').dataset.admin,
toggle = div => { toggle = div => {
eId('loading').hidden = true; eId('loading').hidden = true;
@ -69,7 +69,7 @@ window.rl = {
headers: {} headers: {}
}, init); }, init);
let asJSON = 1, let asJSON = 1,
XToken = RL_APP_DATA.System?.token, XToken = (RL_APP_DATA.System || {}).token,
object = {}; object = {};
if (postData) { if (postData) {
init.method = 'POST'; init.method = 'POST';