mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixes doc refresh bug on chrome mobile.
This commit is contained in:
parent
a20b25c79b
commit
ce027fd769
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue