1
0
Fork 0

simplify query match

This commit is contained in:
Hakim El Hattab 2012-07-04 14:42:27 -04:00
parent 28ee78e7e4
commit a6969770bd
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
(function() {
// don't emit events from inside the previews themselves
var qs = window.location.href.split('?');
if (qs.length > 1 && qs[1].match('receiver')) { return; }
if ( window.location.search.match( /receiver/gi ) ) { return; }
var socket = io.connect(window.location.origin);
var socketId = Math.random().toString().slice(2);