mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
parent
3382d8a500
commit
0b7a2fd197
1 changed files with 2 additions and 2 deletions
|
@ -160,8 +160,8 @@ async function registerFirefoxContentScript(options: Registration) {
|
|||
ids: [options.id]
|
||||
}).catch(() => []);
|
||||
|
||||
if (existingRegistrations.length > 0
|
||||
&& existingRegistrations[0].matches.every((match) => options.matches.includes(match))) {
|
||||
if (existingRegistrations && existingRegistrations.length > 0
|
||||
&& options.matches.every((match) => existingRegistrations[0].matches.includes(match))) {
|
||||
// No need to register another script, already registered
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue