Ver Fonte

Merge branch 'open-notes-in-new-window' of https://github.com/technicalpickles/reveal.js

Hakim El Hattab há 12 anos atrás
pai
commit
884ecc6225
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      plugin/speakernotes/client.js

+ 1 - 1
plugin/speakernotes/client.js

@@ -5,7 +5,7 @@
 	var socket = io.connect(window.location.origin);
 	var socketId = Math.random().toString().slice(2);
 	
-	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;