Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use wss if https
  • Loading branch information
jcrossley3 committed Sep 2, 2015
1 parent 81a48d1 commit 0207c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/public/js/app.js
Expand Up @@ -23,7 +23,7 @@ window.onload = function() {
return;
}

var uri = "ws://" + location.host + location.pathname;
var uri = location.protocol.replace(/^http/, "ws") + "//" + location.host + location.pathname;
uri = uri.substring(0, uri.lastIndexOf('/')) + "/reverser";
socket = new WebSocket(uri);

Expand Down

0 comments on commit 0207c32

Please sign in to comment.