mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Server fixes.
This commit is contained in:
parent
1c10b9c023
commit
923d85a5b9
3 changed files with 7 additions and 4 deletions
|
@ -1188,6 +1188,7 @@
|
|||
// Process server-side web state
|
||||
var webState = '{{{webstate}}}';
|
||||
if (webState != '') { webState = JSON.parse(decodeURIComponent(webState)); }
|
||||
if ((webState == null) || (typeof webState != 'object')) { webState = {}; }
|
||||
for (var i in webState) { if (i != 'desktopsettings') { localStorage.setItem(i, webState[i]); } }
|
||||
if (!webState.loctag) { try { delete localStorage.removeItem('loctag'); } catch (ex) { } }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue