onurcelik
posted this
12 February 2020
I've been getting the same warning..
While I was trying to fix this issue I found out that this warning comes from "window.innerWidth" property..
I've tried using "document.documentElement.clientWidth" instead of "window.innerWidth" to get window width and it seems fixed for now.
here is the working code for me;
if (typeof window.orientation !== 'undefined') {
var windowW = document.documentElement.clientWidth;
}else{
var windowW = window.innerWidth;
}
I've been getting the same warning..
While I was trying to fix this issue I found out that this warning comes from "window.innerWidth" property..
I've tried using "document.documentElement.clientWidth" instead of "window.innerWidth" to get window width and it seems fixed for now.
here is the working code for me;
if (typeof window.orientation !== 'undefined') {
var windowW = document.documentElement.clientWidth;
}else{
var windowW = window.innerWidth;
}
Last edited 27 February 2020 by Support Team