Permalink
Browse files

Merge pull request #114 from ianneub/master

Sockets.io should follow the protocol used by the client hitting the dashboard
  • Loading branch information...
2 parents 9696271 + ca2ca7a commit fe580f7b3e1a186c3bc790695e90fba31aba0966 @fzaninotto committed Feb 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/dashboard/views/layout.ejs
View
2 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 fe580f7

Please sign in to comment.