Browse Source

change event listener syntax #1917

Hakim El Hattab 7 years ago
parent
commit
6ae4ad69d2
1 changed files with 1 additions and 1 deletions
  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 );