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 16e01b7 commit 9b7680fCopy full SHA for 9b7680f
src/background.ts
@@ -157,7 +157,7 @@ async function registerFirefoxContentScript(options: Registration) {
157
if ("scripting" in chrome && "getRegisteredContentScripts" in chrome.scripting) {
158
const existingRegistrations = await chromeP.scripting.getRegisteredContentScripts({
159
ids: [options.id]
160
- });
+ }).catch(() => []);
161
162
if (existingRegistrations.length > 0
163
&& existingRegistrations[0].matches.every((match) => options.matches.includes(match))) {
0 commit comments