make downloaded JSON readable
This commit is contained in:
@@ -25,7 +25,7 @@ export function loadState() {
|
||||
/** Save to browser storage */
|
||||
export async function saveState(state: any) {
|
||||
try {
|
||||
const serializedState = JSON.stringify(state);
|
||||
const serializedState = JSON.stringify(state)
|
||||
localStorage.setItem(KEY, serializedState);
|
||||
} catch (e) {
|
||||
// Ignore
|
||||
|
||||
Reference in New Issue
Block a user