mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
web/app: add another hack to detect wails properly
This commit is contained in:
parent
c6f8d55201
commit
0d25f746a4
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ import { LightboxWrapper } from "./ui/modal/Lightbox.tsx"
|
||||||
import { useEventAsState } from "./util/eventdispatcher.ts"
|
import { useEventAsState } from "./util/eventdispatcher.ts"
|
||||||
|
|
||||||
function makeRPCClient(): RPCClient {
|
function makeRPCClient(): RPCClient {
|
||||||
if (window.wails || window._wails) {
|
if (window.wails || window._wails || navigator.userAgent.includes("wails.io")) {
|
||||||
return new WailsClient()
|
return new WailsClient()
|
||||||
}
|
}
|
||||||
return new WSClient("_gomuks/websocket")
|
return new WSClient("_gomuks/websocket")
|
||||||
|
|
Loading…
Add table
Reference in a new issue