Actually write on setItem

This commit is contained in:
Jiiks 2017-01-11 11:40:17 +02:00
parent 00dfb68677
commit 46fe0f7c37
1 changed files with 1 additions and 0 deletions

View File

@ -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];