diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-02-24 22:31:39 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-02-24 22:39:46 +0900 |
commit | 0a1aeb2342d955bd802d05993dd7d0deddeb44c9 (patch) | |
tree | 5957c254b1721729b64502468137827da89b8c87 /src/background | |
parent | f707f4da75652b4c344df9346a34e8010a044006 (diff) |
Ignore about: tabs on broadcast
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/infrastructures/ContentMessageClient.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/background/infrastructures/ContentMessageClient.js b/src/background/infrastructures/ContentMessageClient.js index 7e7e602..0fab5a3 100644 --- a/src/background/infrastructures/ContentMessageClient.js +++ b/src/background/infrastructures/ContentMessageClient.js @@ -4,6 +4,9 @@ export default class ContentMessageClient { async broadcastSettingsChanged() { let tabs = await browser.tabs.query({}); for (let tab of tabs) { + if (tab.url.startsWith('about:')) { + continue; + } browser.tabs.sendMessage(tab.id, { type: messages.SETTINGS_CHANGED, }); |