From fc30fd44d722e819ec19065b793a35e404902133 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Wed, 14 Apr 2021 09:24:17 -0500 Subject: [PATCH] Fix 10036 - Prevent odd localStorage migration error in Firefox (#10884) --- app/scripts/migrations/050.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/migrations/050.js b/app/scripts/migrations/050.js index 0d7b16296..ba3929355 100644 --- a/app/scripts/migrations/050.js +++ b/app/scripts/migrations/050.js @@ -24,7 +24,7 @@ export default { versionedData.meta.version = version; LEGACY_LOCAL_STORAGE_KEYS.forEach((key) => - window.localStorage.removeItem(key), + window.localStorage?.removeItem(key), ); return versionedData;