瀏覽代碼

Allow popup window access to Reveal API

Adam Spiers 8 年之前
父節點
當前提交
eb23e58114
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      plugin/notes/notes.js

+ 3 - 0
plugin/notes/notes.js

@@ -21,6 +21,9 @@ var RevealNotes = (function() {
 
 		var notesPopup = window.open( notesFilePath, 'reveal.js - Notes', 'width=1100,height=700' );
 
+		// Allow popup window access to Reveal API
+		notesPopup.Reveal = this.Reveal;
+
 		/**
 		 * Connect to the notes window through a postmessage handshake.
 		 * Using postmessage enables us to work in situations where the