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.
- package/modules/browser.js +4 -2
- package/package.json +1 -1
package/modules/browser.js
CHANGED
|
@@ -297,9 +297,11 @@ export const getExternalExtensions = async () => {
|
|
|
297
297
|
let res;
|
|
298
298
|
if (isGranted) {
|
|
299
299
|
const { management } = browser;
|
|
300
|
-
|
|
301
|
-
|
|
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