mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-27 01:28:56 +08:00
Show error to old browsers, instead of crashing
This commit is contained in:
parent
574fd820a6
commit
d1466ad2f2
1 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue