Skip to content

Commit 8526d25

Browse files
committed
Fixed popup opening being slowed down if options UI is opened (thanks Sirus for report).
1 parent fdca98d commit 8526d25

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/bg/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
local: ns.local,
145145
sync: ns.sync,
146146
unrestrictedTab: ns.unrestrictedTabs.has(tabId),
147+
tabId,
147148
});
148149
},
149150

src/ui/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var UI = (() => {
3434
let inited = new Promise(resolve => {
3535
Messages.addHandler({
3636
async settings(m) {
37-
if (!UI.tabId === m.tabId) return;
37+
if (UI.tabId !== m.tabId) return;
3838
UI.policy = new Policy(m.policy);
3939
UI.snapshot = UI.policy.snapshot;
4040
UI.seen = m.seen;

0 commit comments

Comments
 (0)