Added User Web State control on config.json.

This commit is contained in:
Ylian Saint-Hilaire
2020-02-27 18:05:18 -08:00
parent b85e7495a7
commit 152a942ccc
5 changed files with 18 additions and 19 deletions

View File

@@ -1128,6 +1128,7 @@
var webState = '{{{webstate}}}';
if (webState != '') { webState = JSON.parse(decodeURIComponent(webState)); }
for (var i in webState) { localStorage.setItem(i, webState[i]); }
if (webState.deviceView != null) { localStorage.setItem('_deviceView', webState.deviceView); }
if (!webState.loctag) { try { delete localStorage.removeItem('loctag'); } catch (ex) { } }
var args, urlargs;