From 42a8a2994af38438ba2d28ccb9739c3c42f40af8 Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Fri, 23 Sep 2022 00:56:16 +0300 Subject: [PATCH] Fix a bug with how LocalStorage is handled in import/export Signed-off-by: Ari Archer --- content/js/export/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/js/export/index.js b/content/js/export/index.js index 42b36bc..f68f1f7 100644 --- a/content/js/export/index.js +++ b/content/js/export/index.js @@ -37,9 +37,7 @@ function main() { ) window.localStorage.clear(); - Object.keys(data).forEach((k) => - localStorage.setItem(k, JSON.stringify(data[k])) - ); + Object.keys(data).forEach((k) => localStorage.setItem(k, data[k])); alert("Data imported"); } catch (e) {