1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Fix 10036 - Prevent odd localStorage migration error in Firefox (#10884)

This commit is contained in:
David Walsh 2021-04-14 09:24:17 -05:00 committed by GitHub
parent e7d7d24d83
commit fc30fd44d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;