Closed utubo closed 6 years ago
content.js default: browser.runtime.sendMessage(g, (res) => {}); ↓ default: browser.runtime.sendMessage(g);
default: browser.runtime.sendMessage(g, (res) => {});
default: browser.runtime.sendMessage(g);
background.js browser.tabs.query({ active: true }).then(tabs => { f(tabs[0]); }); ↓ browser.tabs.query({ active: true, currentWindow: true }).then(tabs => { f(tabs[0]); });
browser.tabs.query({ active: true }).then(tabs => { f(tabs[0]); });
browser.tabs.query({ active: true, currentWindow: true }).then(tabs => { f(tabs[0]); });
content.js
default: browser.runtime.sendMessage(g, (res) => {});
↓default: browser.runtime.sendMessage(g);
background.js
browser.tabs.query({ active: true }).then(tabs => { f(tabs[0]); });
↓browser.tabs.query({ active: true, currentWindow: true }).then(tabs => { f(tabs[0]); });