SyntaxFix
Write A Post
Hire A Developer
Questions
I had the same problem, and using this solved it.
var w = window.innerWidth; var h = window.innerHeight;