4 lines
199 B
JavaScript
4 lines
199 B
JavaScript
browser.runtime.onMessage.addListener((request, sender, responsewi) => {
|
|
browser.tabs.update(sender.tab.id, {active: true});
|
|
browser.windows.update(sender.tab.windowId, {focused: true});
|
|
});
|