mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 04:27:15 +03:00
Fix invidious support on Safari
This commit is contained in:
@@ -157,7 +157,7 @@ async function registerFirefoxContentScript(options: Registration) {
|
|||||||
if ("scripting" in chrome && "getRegisteredContentScripts" in chrome.scripting) {
|
if ("scripting" in chrome && "getRegisteredContentScripts" in chrome.scripting) {
|
||||||
const existingRegistrations = await chromeP.scripting.getRegisteredContentScripts({
|
const existingRegistrations = await chromeP.scripting.getRegisteredContentScripts({
|
||||||
ids: [options.id]
|
ids: [options.id]
|
||||||
});
|
}).catch(() => []);
|
||||||
|
|
||||||
if (existingRegistrations.length > 0
|
if (existingRegistrations.length > 0
|
||||||
&& existingRegistrations[0].matches.every((match) => options.matches.includes(match))) {
|
&& existingRegistrations[0].matches.every((match) => options.matches.includes(match))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user