change event listener syntax #1917

edit
Hakim El Hattab 2017-06-12 09:17:46 +02:00
parent 5e279efdf3
commit 6ae4ad69d2
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
}; };
// post once the page is loaded, so the client follows also on "open URL". // 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 // Monitor events that trigger a change in state
Reveal.addEventListener( 'slidechanged', post ); Reveal.addEventListener( 'slidechanged', post );