Fix log entry format
This commit is contained in:
parent
f92a4c2a6e
commit
59bda25be2
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ export const logToDisk = (message: string) => {
|
|||
logs.slice(logs.length - maxCount);
|
||||
}
|
||||
logs.push(log);
|
||||
localStorage.setItem(lsKey, JSON.stringify(logs));
|
||||
localStorage.setItem(lsKey, JSON.stringify({ logs }));
|
||||
} catch (e) {
|
||||
console.error("Failed to persist log", e);
|
||||
if (e instanceof Error && e.name === "QuotaExceededError") {
|
||||
|
|
Loading…
Add table
Reference in a new issue