Skip to content

Commit 9b7680f

Browse files
committed
Fix invidious support on Safari
1 parent 16e01b7 commit 9b7680f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/background.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async function registerFirefoxContentScript(options: Registration) {
157157
if ("scripting" in chrome && "getRegisteredContentScripts" in chrome.scripting) {
158158
const existingRegistrations = await chromeP.scripting.getRegisteredContentScripts({
159159
ids: [options.id]
160-
});
160+
}).catch(() => []);
161161

162162
if (existingRegistrations.length > 0
163163
&& existingRegistrations[0].matches.every((match) => options.matches.includes(match))) {

0 commit comments

Comments
 (0)