Fixes doc refresh bug on chrome mobile.

This commit is contained in:
Jacob Hammons 2016-06-16 12:43:33 -06:00
parent a20b25c79b
commit ce027fd769

View file

@ -1,5 +1,6 @@
/*custom webhelp*/
var windowheight = $( window ).height();
var windowwidth = $( window ).width();
$( document ).ready(function() {
@ -183,7 +184,7 @@ function resizeend() {
setTimeout(resizeend, delta);
} else {
timeout = false;
if ($( window ).height() > windowheight || $( window ).height() + 40 < windowheight) {
if ($( window ).height() != windowheight && $(window).width() != windowwidth) {
location.reload(false);
}
}