webext-schema 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -297,9 +297,11 @@ export const getExternalExtensions = async () => {
297
297
  let res;
298
298
  if (isGranted) {
299
299
  const { management } = browser;
300
- const arr = await management.getAll();
301
- if (Array.isArray(arr)) {
300
+ try {
301
+ const arr = await management.getAll();
302
302
  res = arr.filter(info => info.type && info.type === 'extension' && info);
303
+ } catch (e) {
304
+ logErr(e);
303
305
  }
304
306
  }
305
307
  return res || null;
package/package.json CHANGED
@@ -48,5 +48,5 @@
48
48
  "nock": "^13.2.4",
49
49
  "npm-run-all": "^4.1.5"
50
50
  },
51
- "version": "2.3.0"
51
+ "version": "2.3.1"
52
52
  }