From eb23e58114dadd6c68e41d077e32ce4959678c5a Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Sat, 16 Apr 2016 15:35:14 +0100 Subject: [PATCH] Allow popup window access to Reveal API --- plugin/notes/notes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/notes/notes.js b/plugin/notes/notes.js index 44efe15..80fb6e2 100644 --- a/plugin/notes/notes.js +++ b/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