Skip to content

Commit

Permalink
Merge pull request #4 from einoodle/patch-1
Browse files Browse the repository at this point in the history
fixed misspelling of script tag
  • Loading branch information
dbashford committed Nov 23, 2013
2 parents 6230491 + 2763964 commit 6f226c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/assets/reload-client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function() {
var scripts = document.getElementsByTagName("scripts");
var scripts = document.getElementsByTagName("script");
var socket = io.connect(
(function() { for(var i=0;i<scripts.length;i++) { if(scripts[i].src && scripts[i].src.indexOf("/socket.io.js"))
return (/^([^#]*?:\/\/.*?)(\/.*)$/.exec(scripts[i].src) || [])[1];
Expand All @@ -25,4 +25,4 @@
console.log('CSS updated');
}

})();
})();

0 comments on commit 6f226c1

Please sign in to comment.