mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-27 18:18:28 +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
|
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';
|
||||||
|
|
Loading…
Reference in a new issue