Ignore about: tabs on broadcast

jh-changes
Shin'ya Ueoka 6 years ago
parent f707f4da75
commit 0a1aeb2342
  1. 3
      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,
});