Use window.addEventListener rather than screen.addEventListener in the example, as the former isn't supported by (at least) chrome/chromium

This commit is contained in:
Kevin MacMartin 2015-07-02 16:15:27 -04:00
parent f3b5b6354b
commit 17c772c5c9

View file

@ -31,7 +31,7 @@ window.onload = function() {
window.onresize = contain.update;
// (example) update the size and positioning on orientation change
screen.addEventListener('orientationchange', contain.update);
window.addEventListener('orientationchange', contain.update);
};
```