Преглед на файлове

change event listener syntax #1917

Hakim El Hattab преди 7 години
родител
ревизия
6ae4ad69d2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      plugin/multiplex/master.js

+ 1 - 1
plugin/multiplex/master.js

@@ -20,7 +20,7 @@
 	};
 
 	// post once the page is loaded, so the client follows also on "open URL".
-	window.onload = post;
+	window.addEventListener( 'load', post );
 
 	// Monitor events that trigger a change in state
 	Reveal.addEventListener( 'slidechanged', post );