Permalink
Browse files

Client connect to socket.io will now use the same protocol as used to…

… connect to the dashboard.
  • Loading branch information...
1 parent 9696271 commit ca2ca7ab21a75528e1542da483ec1c40cce92bf5 @ianneub ianneub committed Feb 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/dashboard/views/layout.ejs
@@ -13,7 +13,7 @@
<script src="<%= route %>/javascripts/jquery.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script>
- var socket = io.connect('http://' + location.hostname);
+ var socket = io.connect(location.protocol + '//' + location.hostname);
</script>
<script src="<%= route %>/javascripts/moment.min.js"></script>
<!--[if lt IE 9]>

0 comments on commit ca2ca7a

Please sign in to comment.