isNeeded is evaluated to be false when opening a page within a new window, and the whole thing does not work as a result. For me, it happens in iPhone/Safari.
Workaround is to set force: true in the config depending on the User Agent,
or use setTimeout or window.requestAnimationFrame to delay calling vhCheck.
isNeededis evaluated to be false when opening a page within a new window, and the whole thing does not work as a result. For me, it happens in iPhone/Safari.Workaround is to set
force: truein the config depending on the User Agent,or use
setTimeoutorwindow.requestAnimationFrameto delay calling vhCheck.