From 668b56d9a2f24bdd0645830e34256d80b7e4d234 Mon Sep 17 00:00:00 2001 From: Michael Hollister Date: Fri, 18 Apr 2025 18:28:25 -0500 Subject: [PATCH] Electron: Explictly mention FCast sender app required for QR code scan --- receivers/electron/src/Main.ts | 7 ++++++- receivers/electron/src/main/index.html | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) 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 @@
Automatic discovery is available via mDNS
-
Scan to connect
+
Scan with a FCast sender app.
+
Need a sender app?
Download Grayjay at https://grayjay.app