Skip to content

Commit a696977

Browse files
committed
simplify query match
1 parent 28ee78e commit a696977

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/slidenotes/client.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(function() {
22
// don't emit events from inside the previews themselves
3-
var qs = window.location.href.split('?');
4-
if (qs.length > 1 && qs[1].match('receiver')) { return; }
3+
if ( window.location.search.match( /receiver/gi ) ) { return; }
54

65
var socket = io.connect(window.location.origin);
76
var socketId = Math.random().toString().slice(2);

0 commit comments

Comments
 (0)