diff --git a/addon-tab-preload.js b/addon-tab-preload.js index b8a49b1..b3d45e5 100644 --- a/addon-tab-preload.js +++ b/addon-tab-preload.js @@ -17,4 +17,7 @@ contextBridge.exposeInMainWorld("silentmode", { // Escape. Main derives the tab from the sender's webContents id so an // add-on page can only close its own tab, never anyone else's. closeTab: () => ipcRenderer.invoke("addon-tab-close"), + // Bring this page's own tab to the front. Main derives the tab from the + // sender, so a page can only front itself. + focusTab: () => ipcRenderer.invoke("addon-tab-focus"), });