change event listener syntax #1917
This commit is contained in:
parent
5e279efdf3
commit
6ae4ad69d2
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue