hakimel 3 lat temu
rodzic
commit
31407082eb

Plik diff jest za duży
+ 0 - 0
plugin/math/math.esm.js


Plik diff jest za duży
+ 0 - 0
plugin/math/math.js


Plik diff jest za duży
+ 0 - 0
plugin/notes/notes.esm.js


Plik diff jest za duży
+ 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 );
 							}

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików