[fix] 'window' value in 'Dimension'

This commit is contained in:
Nicolas Gallagher
2016-03-15 11:35:36 -07:00
parent ba9fa2a7a0
commit 8441755d61

View File

@@ -17,9 +17,9 @@ const dimensions = {
},
window: {
fontScale: 1,
get height() { return document.documentElement.clientHeight },
get height() { return window.innerHeight },
scale: window.devicePixelRatio || 1,
get width() { return document.documentElement.clientWidth }
get width() { return window.innerWidth }
}
}