diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2016-01-08 14:33:34 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2016-01-08 14:33:34 +0100 |
commit | 19a69b2c899eea4d1d71f55e04be2153e93701b1 (patch) | |
tree | e342d507f26a144d26213ecc247dd222ad6b488e /plugin | |
parent | 3df2129bd6d369c45fadaf1f14c4d6c23a55ad50 (diff) | |
download | perl-software-in-gnu-guix-19a69b2c899eea4d1d71f55e04be2153e93701b1.tar perl-software-in-gnu-guix-19a69b2c899eea4d1d71f55e04be2153e93701b1.tar.gz |
code format
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/notes/notes.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugin/notes/notes.js b/plugin/notes/notes.js index 4299034..88f98d6 100644 --- a/plugin/notes/notes.js +++ b/plugin/notes/notes.js @@ -11,14 +11,15 @@ */ var RevealNotes = (function() { - function openNotes(notes_html_file_path) { - if (!notes_html_file_path) { + function openNotes( notesFilePath ) { + + if( !notesFilePath ) { var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path - notes_html_file_path = jsFileLocation + 'notes.html'; + notesFilePath = jsFileLocation + 'notes.html'; } - - var notesPopup = window.open(notes_html_file_path, 'reveal.js - Notes', 'width=1100,height=700' ); + + var notesPopup = window.open( notesFilePath, 'reveal.js - Notes', 'width=1100,height=700' ); /** * Connect to the notes window through a postmessage handshake. @@ -100,6 +101,7 @@ var RevealNotes = (function() { } connect(); + } if( !/receiver/i.test( window.location.search ) ) { |