Explorar o código

open slide notes window automatically #135

Hakim El Hattab %!s(int64=12) %!d(string=hai) anos
pai
achega
edfcfb1d3f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      plugin/speakernotes/client.js

+ 2 - 1
plugin/speakernotes/client.js

@@ -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;