diff --git a/receivers/electron/src/Main.ts b/receivers/electron/src/Main.ts index 163fd4d..2849347 100644 --- a/receivers/electron/src/Main.ts +++ b/receivers/electron/src/Main.ts @@ -1,4 +1,4 @@ -import { BrowserWindow, ipcMain, IpcMainEvent, nativeImage, Tray, Menu, dialog } from 'electron'; +import { BrowserWindow, ipcMain, IpcMainEvent, nativeImage, Tray, Menu, dialog, shell } from 'electron'; import { Opcode, PlaybackErrorMessage, PlaybackUpdateMessage, VolumeUpdateMessage } from 'common/Packets'; import { DiscoveryService } from 'common/DiscoveryService'; import { TcpListenerService } from 'common/TcpListenerService'; @@ -278,6 +278,11 @@ export class Main { if (Updater.checkForUpdatesOnStart) { Main.checkForUpdates(true); } + + Main.mainWindow.webContents.setWindowOpenHandler((details) => { + shell.openExternal(details.url); + return { action: "deny" }; + }); } static openMainWindow() { diff --git a/receivers/electron/src/main/index.html b/receivers/electron/src/main/index.html index be5c8ae..a8a6f2b 100644 --- a/receivers/electron/src/main/index.html +++ b/receivers/electron/src/main/index.html @@ -52,7 +52,8 @@