diff --git a/platform/common/vapi-background.js b/platform/common/vapi-background.js index 836cca3f0..3de888847 100644 --- a/platform/common/vapi-background.js +++ b/platform/common/vapi-background.js @@ -1383,10 +1383,13 @@ vAPI.adminStorage = (( ) => { }, }; } - const cacheManagedStorage = ( ) => { - webext.storage.managed.get().then(store => { - webext.storage.local.set({ cachedManagedStorage: store || {} }); - }); + const cacheManagedStorage = async ( ) => { + let store; + try { + store = await webext.storage.managed.get(); + } catch(ex) { + } + webext.storage.local.set({ cachedManagedStorage: store || {} }); }; return {