Fixed saving run command dialog state on the server.
This commit is contained in:
parent
b54d0130f7
commit
ab84719afe
|
@ -17790,7 +17790,7 @@
|
||||||
try {
|
try {
|
||||||
if ((typeof (localStorage) === 'undefined') || (localStorage.getItem(name) == val)) return;
|
if ((typeof (localStorage) === 'undefined') || (localStorage.getItem(name) == val)) return;
|
||||||
if (val == null) { localStorage.removeItem(name); } else { localStorage.setItem(name, val); }
|
if (val == null) { localStorage.removeItem(name); } else { localStorage.setItem(name, val); }
|
||||||
} catch (e) { }
|
} catch (ex) { }
|
||||||
if (name[0] != '_') {
|
if (name[0] != '_') {
|
||||||
var s = {};
|
var s = {};
|
||||||
try {
|
try {
|
||||||
|
@ -17798,7 +17798,7 @@
|
||||||
var k = localStorage.key(i);
|
var k = localStorage.key(i);
|
||||||
if (k[0] != '_') {
|
if (k[0] != '_') {
|
||||||
s[k] = localStorage.getItem(k);
|
s[k] = localStorage.getItem(k);
|
||||||
if ((k != 'desktopsettings') && (k != 'stars') && (k != 'deskKeyShortcuts') && (k != 'deskStrings') && (typeof s[k] == 'string') && (s[k].length > 64)) { delete s[k]; }
|
if ((k != 'desktopsettings') && (k != 'stars') && (k != 'deskKeyShortcuts') && (k != 'deskStrings') && (k != 'cmdopt') && (typeof s[k] == 'string') && (s[k].length > 64)) { delete s[k]; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ex) {}
|
} catch (ex) {}
|
||||||
|
|
|
@ -7977,6 +7977,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
}
|
}
|
||||||
if ((typeof state.deskKeyShortcuts == 'string') && (state.deskKeyShortcuts.length < 2048)) { out.deskKeyShortcuts = state.deskKeyShortcuts; }
|
if ((typeof state.deskKeyShortcuts == 'string') && (state.deskKeyShortcuts.length < 2048)) { out.deskKeyShortcuts = state.deskKeyShortcuts; }
|
||||||
if ((typeof state.deskStrings == 'string') && (state.deskStrings.length < 10000)) { out.deskStrings = state.deskStrings; }
|
if ((typeof state.deskStrings == 'string') && (state.deskStrings.length < 10000)) { out.deskStrings = state.deskStrings; }
|
||||||
|
if ((typeof state.runopt == 'string') && (state.runopt.length < 30000)) { out.runopt = state.runopt; }
|
||||||
return JSON.stringify(out);
|
return JSON.stringify(out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue