mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 08:10:56 +08:00
fix wss /wails/ipc (#2469)
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
parent
bf2d6d3241
commit
d3332f0b2c
@ -80,7 +80,7 @@ function handleDisconnect() {
|
||||
|
||||
function _connect() {
|
||||
if (websocket == null) {
|
||||
websocket = new WebSocket('ws://' + window.location.host + '/wails/ipc');
|
||||
websocket = new WebSocket((window.location.protocol.startsWith("https") ? "wss://" : "ws://") + window.location.host + "/wails/ipc");
|
||||
websocket.onopen = handleConnect;
|
||||
websocket.onerror = function (e) {
|
||||
e.stopImmediatePropagation();
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user