We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28944e commit 31f6ac1Copy full SHA for 31f6ac1
client/index.js
@@ -59,7 +59,7 @@ var onSocketMsg = {
59
60
var newConnection = function() {
61
sock = new SockJS(url.format({
62
- protocol: urlParts.protocol,
+ protocol: (window.location.protocol == "https:") ? "https:" : urlParts.protocol,
63
auth: urlParts.auth,
64
hostname: (urlParts.hostname === '0.0.0.0') ? window.location.hostname : urlParts.hostname,
65
port: (urlParts.port == '0') ? window.location.port : urlParts.port,
0 commit comments