This commit is contained in:
2024-12-30 14:16:40 +02:00
parent 2317d5a213
commit 35f814e446
9 changed files with 123 additions and 33 deletions
+2 -1
View File
@@ -89,7 +89,8 @@ ipcRenderer.on('tab-created', (ev, id, url = 'https://duckduckgo.com') => create
contextBridge.exposeInMainWorld('tabAPI', {
ping: () => console.info('pong'),
addTab: (url) => ipcRenderer.send('add-tab', url || 'about:blank')
addTab: (url) => ipcRenderer.send('add-tab', url || 'about:blank'),
newTab: (url) => ipcRenderer.send('add-tab-external', url)
});
const load = async () => {