From 22160f50d355c8151399eb53b8d4788e3eb8d81a Mon Sep 17 00:00:00 2001 From: Shriram Balaji Date: Tue, 7 Apr 2020 15:39:37 +0530 Subject: [PATCH] Wrap localStorage API Access in try-catch (#1241) --- src/components/TopErrorBoundary.tsx | 8 +++++-- src/data/localStorage.ts | 33 ++++++++++++++++++++--------- 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/src/components/TopErrorBoundary.tsx b/src/components/TopErrorBoundary.tsx index a0741036..bd386b4b 100644 --- a/src/components/TopErrorBoundary.tsx +++ b/src/components/TopErrorBoundary.tsx @@ -81,8 +81,12 @@ export class TopErrorBoundary extends React.Component< {t("errorSplash.clearCanvasMessage")}