open slide notes window automatically #135
authorHakim El Hattab <hakim.elhattab@gmail.com>
Mon, 10 Sep 2012 02:17:32 +0000 (22:17 -0400)
committerHakim El Hattab <hakim.elhattab@gmail.com>
Mon, 10 Sep 2012 02:17:45 +0000 (22:17 -0400)
plugin/speakernotes/client.js

index a97ad46abf684cf18b27a57aab636956132106a4..b164a56378d0e084fc26bb61ee9ec7e2f76eeb9f 100644 (file)
@@ -5,7 +5,8 @@
        var socket = io.connect(window.location.origin);
        var socketId = Math.random().toString().slice(2);
        
-        window.open(window.location.origin + '/notes/' + socketId, 'notes-' + socketId)
+       console.log('View slide notes at ' + window.location.origin + '/notes/' + socketId);
+       window.open(window.location.origin + '/notes/' + socketId, 'notes-' + socketId)
 
        Reveal.addEventListener( 'slidechanged', function( event ) {
                var nextindexh;