mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
disable reset localStorage on error
This commit is contained in:
parent
d8c88c70c3
commit
a1ec883bd5
@ -59,7 +59,6 @@ export const parser = (input) => {
|
||||
return [...flatten(res), ...relationships(res)];
|
||||
} catch (error) {
|
||||
console.error("An error occured while parsin JSON data!", error.stack);
|
||||
localStorage.setItem('json', JSON.stringify(defaultValue));
|
||||
return Array;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user