From 6722ae3dfae14ef9d3dfb0723297bf6a4f74695a Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Sat, 19 Jun 2021 17:12:44 +0100 Subject: [PATCH] Update storage.ts --- state/storage.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/state/storage.ts b/state/storage.ts index 6478a4fe0..f763c231c 100644 --- a/state/storage.ts +++ b/state/storage.ts @@ -45,7 +45,11 @@ class Storage { } } - this.load(data) + try { + this.load(data) + } catch (error) { + console.error(error) + } } saveDocumentToLocalStorage(data: Data) {