From 0d25f746a4efffc2d538512ebc969eda3e84666a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 1 Dec 2024 22:12:40 +0200 Subject: [PATCH] web/app: add another hack to detect wails properly --- web/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index a80e416..919346c 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -26,7 +26,7 @@ import { LightboxWrapper } from "./ui/modal/Lightbox.tsx" import { useEventAsState } from "./util/eventdispatcher.ts" function makeRPCClient(): RPCClient { - if (window.wails || window._wails) { + if (window.wails || window._wails || navigator.userAgent.includes("wails.io")) { return new WailsClient() } return new WSClient("_gomuks/websocket")