147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
+
-
+
-
|
function _setGCOptions (dSavedOptions) {
if (dSavedOptions.hasOwnProperty("gc_options")) {
setGCOptions(dSavedOptions.gc_options);
}
}
function setGCOptions (dOptions) {
// dOptions is supposed to be a Map
if (bChrome) {
// JS crap again. Chrome can’t store Map object.
// JS crap again. Chrome can’t store/send Map object.
let m = new Map();
for (let param in dOptions) {
m.set(param, dOptions[param]);
}
dOptions = m;
}
for (let [sOpt, bVal] of dOptions) {
console.log(sOpt + ": " + bVal);
if (document.getElementById("option_"+sOpt)) {
document.getElementById("option_"+sOpt).checked = bVal;
}
}
}
|