Fix invidious support on Safari

This commit is contained in:
Ajay 2023-08-25 16:38:50 -04:00
parent 16e01b7494
commit 9b7680f0e6

View file

@ -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))) {