aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/websockets/qwebsocket_wasm_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websockets/qwebsocket_wasm_p.cpp b/src/websockets/qwebsocket_wasm_p.cpp
index 398fd01..e0b2156 100644
--- a/src/websockets/qwebsocket_wasm_p.cpp
+++ b/src/websockets/qwebsocket_wasm_p.cpp
@@ -136,7 +136,7 @@ void QWebSocketPrivate::open(const QNetworkRequest &request,
const QUrl url = request.url();
- emscripten::val navProtocol = emscripten::val::global("window")["location"]["protocol"];
+ emscripten::val navProtocol = emscripten::val::global("self")["location"]["protocol"];
// An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
// and causes emscripten to assert