From 17c772c5c9874750194d1288f8b7cbd15ea4a1e8 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 2 Jul 2015 16:15:27 -0400 Subject: [PATCH] Use window.addEventListener rather than screen.addEventListener in the example, as the former isn't supported by (at least) chrome/chromium --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d6802bf..85d8940 100644 --- a/README.md +++ b/README.md @@ -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); }; ```