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 2c9a461 commit 70bc376Copy full SHA for 70bc376
client/index.js
@@ -60,7 +60,7 @@ var onSocketMsg = {
60
61
var newConnection = function() {
62
sock = new SockJS(url.format({
63
- protocol: urlParts.protocol,
+ protocol: (window.location.protocol == "https:") ? "https:" : urlParts.protocol,
64
auth: urlParts.auth,
65
hostname: (urlParts.hostname === '0.0.0.0') ? window.location.hostname : urlParts.hostname,
66
port: (urlParts.port == '0') ? window.location.port : urlParts.port,
0 commit comments