Skip to content

Commit

Permalink
fix iframe connection
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Nov 19, 2015
1 parent f1e5b6e commit 51f8480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assets/iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
// use dom element for better cross browser compatibility
var url = document.createElement('a');
url.href = window.location;
var socket = io({path: (url.pathname + '/socket.io').replace('//','/')});
var socket = io({path: (url.pathname.replace(/\/iframe\/, '') + '/socket.io').replace('//','/')});
var count = document.getElementsByClassName('slack-count')[0];

socket.on('data', function(users){
Expand Down

0 comments on commit 51f8480

Please sign in to comment.