Actually write on setItem
This commit is contained in:
parent
00dfb68677
commit
46fe0f7c37
|
@ -23,6 +23,7 @@
|
|||
let __ls = data;
|
||||
__ls.setItem = function(i, v) {
|
||||
__ls[i] = v;
|
||||
__fs.writeFileSync("localStorage.json", JSON.stringify(__ls), null, 4);
|
||||
};
|
||||
__ls.getItem = function(i) {
|
||||
return __ls[i];
|
||||
|
|
Loading…
Reference in New Issue