Fixed saving run command dialog state on the server.
Ylian Saint-Hilaire committed
Aug 19, 2022 at 13:42 UTC
ab84719afeea7bfcfb1cbf5055096f178c4afe38
2 files changed
+3
-2
views/default.handlebars
+2
-2
@@ -17790,7 +17790,7 @@
17790
try {
17791
if ((typeof (localStorage) === 'undefined') || (localStorage.getItem(name) == val)) return;
17792
if (val == null) { localStorage.removeItem(name); } else { localStorage.setItem(name, val); }
17793
- } catch (e) { }
17793
+ } catch (ex) { }
17794
if (name[0] != '_') {
17795
var s = {};
17796
try {
@@ -17798,7 +17798,7 @@
17798
var k = localStorage.key(i);
17799
if (k[0] != '_') {
17800
s[k] = localStorage.getItem(k);
17801
- if ((k != 'desktopsettings') && (k != 'stars') && (k != 'deskKeyShortcuts') && (k != 'deskStrings') && (typeof s[k] == 'string') && (s[k].length > 64)) { delete s[k]; }
17801
+ if ((k != 'desktopsettings') && (k != 'stars') && (k != 'deskKeyShortcuts') && (k != 'deskStrings') && (k != 'cmdopt') && (typeof s[k] == 'string') && (s[k].length > 64)) { delete s[k]; }
17802
}
17803
}
17804
} catch (ex) {}
webserver.js
+1
@@ -7977,6 +7977,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
7977
}
7978
if ((typeof state.deskKeyShortcuts == 'string') && (state.deskKeyShortcuts.length < 2048)) { out.deskKeyShortcuts = state.deskKeyShortcuts; }
7979
if ((typeof state.deskStrings == 'string') && (state.deskStrings.length < 10000)) { out.deskStrings = state.deskStrings; }
7980
+ if ((typeof state.runopt == 'string') && (state.runopt.length < 30000)) { out.runopt = state.runopt; }
7981
return JSON.stringify(out);
7982
}
7983