diff --git a/src/background/ipc.js b/src/background/ipc.js index ab5b313..dc49995 100644 --- a/src/background/ipc.js +++ b/src/background/ipc.js @@ -197,6 +197,7 @@ function registerIpcHandlers() { ipcMain.on('openGitHubRepository', openGitHubRepository); ipcMain.handle('openGitHubRepository', openGitHubRepository); + ipcMain.handle('openUrl', (event, url) => shell.openExternal(url)); } module.exports = { registerIpcHandlers }; diff --git a/src/background/preload.js b/src/background/preload.js index a4d2d78..738312d 100644 --- a/src/background/preload.js +++ b/src/background/preload.js @@ -24,6 +24,7 @@ contextBridge.exposeInMainWorld('api', { 'getContextOverview', 'getPreferences', 'savePreferences', + 'openUrl', 'openGitHubRepository' ), async subscribeToContainerLogs(contextName, podName, containerName, fn) { diff --git a/src/foreground/components/resource-table-adapters/Ingresses.vue b/src/foreground/components/resource-table-adapters/Ingresses.vue index 217d2d5..42de769 100644 --- a/src/foreground/components/resource-table-adapters/Ingresses.vue +++ b/src/foreground/components/resource-table-adapters/Ingresses.vue @@ -12,7 +12,7 @@