更新
This commit is contained in:
parent
8db92c76bf
commit
7d3c5bfd11
@ -909,17 +909,21 @@ label[for='accessibility_helper'] {line-height: 1.6; margin-left: 8px;}
|
|||||||
},
|
},
|
||||||
window,
|
window,
|
||||||
(k) => {
|
(k) => {
|
||||||
const localDB = localStorage.getItem('wh_fake_GM_DB')
|
let string = localStorage.getItem('wh_fake_GM_DB');
|
||||||
? JSON.parse(localStorage.getItem('wh_fake_GM_DB'))
|
let parsed = {};
|
||||||
: {};
|
try {
|
||||||
return localDB[k];
|
parsed = JSON.parse(string);
|
||||||
|
} catch {}
|
||||||
|
return parsed[k];
|
||||||
},
|
},
|
||||||
(k, v) => {
|
(k, v) => {
|
||||||
const localDB = localStorage.getItem('wh_fake_GM_DB')
|
let string = localStorage.getItem('wh_fake_GM_DB');
|
||||||
? JSON.parse(localStorage.getItem('wh_fake_GM_DB'))
|
let parsed = {};
|
||||||
: {};
|
try {
|
||||||
localDB[k] = v;
|
parsed = JSON.parse(string);
|
||||||
localStorage.setItem('wh_fake_GM_DB', JSON.stringify(localDB))
|
} catch {}
|
||||||
|
parsed[k] = v;
|
||||||
|
localStorage.setItem('wh_fake_GM_DB', JSON.stringify(parsed));
|
||||||
},
|
},
|
||||||
(args) => {
|
(args) => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user