mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-05 14:17:56 +02:00
simplify query match
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
(function() {
|
(function() {
|
||||||
// don't emit events from inside the previews themselves
|
// don't emit events from inside the previews themselves
|
||||||
var qs = window.location.href.split('?');
|
if ( window.location.search.match( /receiver/gi ) ) { return; }
|
||||||
if (qs.length > 1 && qs[1].match('receiver')) { return; }
|
|
||||||
|
|
||||||
var socket = io.connect(window.location.origin);
|
var socket = io.connect(window.location.origin);
|
||||||
var socketId = Math.random().toString().slice(2);
|
var socketId = Math.random().toString().slice(2);
|
||||||
|
Reference in New Issue
Block a user