fix: Don't crash when <all_urls> matches is used in dev mode

This commit is contained in:
Aaron Klinker
2023-09-29 08:18:56 -05:00
parent 24e69fe1bf
commit b48cee9715
3 changed files with 6 additions and 6 deletions
@@ -1,7 +1,7 @@
import '../../common/style.css';
export default defineContentScript({
matches: ['*://*/*'],
matches: ['<all_urls>'],
async main(ctx) {
console.log(browser.runtime.id);
logId();
+1 -1
View File
@@ -67,7 +67,7 @@
"dependencies": {
"@types/webextension-polyfill": "^0.10.1",
"@webext-core/fake-browser": "^1.2.2",
"@webext-core/match-patterns": "^1.0.1",
"@webext-core/match-patterns": "^1.0.2",
"async-mutex": "^0.4.0",
"c12": "^1.4.2",
"cac": "^6.7.14",
+4 -4
View File
@@ -15,8 +15,8 @@ importers:
specifier: ^1.2.2
version: 1.2.2
'@webext-core/match-patterns':
specifier: ^1.0.1
version: 1.0.1
specifier: ^1.0.2
version: 1.0.2
async-mutex:
specifier: ^0.4.0
version: 0.4.0
@@ -1263,8 +1263,8 @@ packages:
lodash.merge: 4.6.2
dev: false
/@webext-core/match-patterns@1.0.1:
resolution: {integrity: sha512-huti7vdxWQ10XlkmEO/nC7gVmzAcxNRj+Kdp+HrnRzh2PY9pv5BLrjL8QXzN5EdJjxP154yr7/Q7+Z6xe0TZDA==}
/@webext-core/match-patterns@1.0.2:
resolution: {integrity: sha512-ApmXwA2HRCgt/vXaZw8NfyV3hBqsyO7wAork4qgH+AtCJW4uRxHbMruSKJ0Flh/yOGMbrbLixd3E9Yw5dmGygw==}
dependencies:
'@webcomponents/webcomponentsjs': 2.8.0
dev: false