1 2 3 4 5 6 7
browser.runtime.onMessage.addListener(notify); function notify(message) { if (message.action == "showTab") { browser.tabs.update({ url: "/tab.html" }); } }