Skip to content

Commit e22fc5c

Browse files
committed
Skip sections except edge
1 parent 2fd99fd commit e22fc5c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webextensions/edge/background.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,11 @@ const RepostConfirmationCancelerTalkClient = {
139139

140140
console.log(`* Lookup sections for ${urlToMatch}`);
141141
for (const section of config.Sections) {
142+
if (section.Name.toLowerCase() !== "[edge]")
143+
{
144+
continue;
145+
}
142146
console.log(`handleURL: check for section ${section.Name} (${JSON.stringify(section)})`);
143-
144147
if (this.match(section, urlToMatch)) {
145148
console.log(` => unmatched`);
146149
this.startMonitoring();

0 commit comments

Comments
 (0)