hakimel 3 years ago
parent
commit
31407082eb
5 changed files with 8 additions and 2 deletions
  1. 0 0
      plugin/math/math.esm.js
  2. 0 0
      plugin/math/math.js
  3. 0 0
      plugin/notes/notes.esm.js
  4. 0 0
      plugin/notes/notes.js
  5. 8 2
      plugin/notes/plugin.js

File diff suppressed because it is too large
+ 0 - 0
plugin/math/math.esm.js


File diff suppressed because it is too large
+ 0 - 0
plugin/math/math.js


File diff suppressed because it is too large
+ 0 - 0
plugin/notes/notes.esm.js


File diff suppressed because it is too large
+ 0 - 0
plugin/notes/notes.js


+ 8 - 2
plugin/notes/plugin.js

@@ -203,8 +203,14 @@ const Plugin = () => {
 					// that we remain connected to the notes even if the presentation
 					// is reloaded.
 					window.addEventListener( 'message', event => {
-						if( !speakerWindow ) {
-							let data = JSON.parse( event.data );
+						if( !speakerWindow && typeof event.data === 'string' ) {
+							let data;
+
+							try {
+								data = JSON.parse( event.data );
+							}
+							catch( error ) {}
+
 							if( data && data.namespace === 'reveal-notes' && data.type === 'heartbeat' ) {
 								reconnectSpeakerWindow( event.source );
 							}

Some files were not shown because too many files changed in this diff