mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Fix invidious support on Safari
This commit is contained in:
parent
16e01b7494
commit
9b7680f0e6
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ async function registerFirefoxContentScript(options: Registration) {
|
|||
if ("scripting" in chrome && "getRegisteredContentScripts" in chrome.scripting) {
|
||||
const existingRegistrations = await chromeP.scripting.getRegisteredContentScripts({
|
||||
ids: [options.id]
|
||||
});
|
||||
}).catch(() => []);
|
||||
|
||||
if (existingRegistrations.length > 0
|
||||
&& existingRegistrations[0].matches.every((match) => options.matches.includes(match))) {
|
||||
|
|
Loading…
Reference in a new issue