We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e70318 commit 21b7bc6Copy full SHA for 21b7bc6
scripts/options.js
@@ -264,11 +264,13 @@ window.addEventListener("DOMContentLoaded", () => {
264
})
265
.catch(console.error);
266
267
- browser.storage.managed.get('enterprise')
268
- .then((result) => {
269
- if(result.enterprise) {
270
- manager.addEnterpriseInstance(result.enterprise);
271
- }
272
- })
273
- .catch(console.error);
+ if("managed" in browser.storage) {
+ browser.storage.managed.get('enterprise')
+ .then((result) => {
+ if(result.enterprise) {
+ manager.addEnterpriseInstance(result.enterprise);
+ }
+ })
274
+ .catch(console.error);
275
276
}, PASSIVE_EVENT);
0 commit comments