From 46fe0f7c3718dda3c337569a930524d2417d7cd8 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 11 Jan 2017 11:40:17 +0200 Subject: [PATCH] Actually write on setItem --- js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/main.js b/js/main.js index 625c8d40..ad55f194 100644 --- a/js/main.js +++ b/js/main.js @@ -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];