mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 09:39:25 +01:00
Fix a bug with how LocalStorage is handled in import/export
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
39aa402561
commit
42a8a2994a
1 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue