hakimel 3 ani în urmă
părinte
comite
31407082eb

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
plugin/math/math.esm.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
plugin/math/math.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
plugin/notes/notes.esm.js


Fișier diff suprimat deoarece este prea mare
+ 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 );
 							}

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff