mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-25 00:00:41 +08:00
4c304d8775
Signed-off-by: szaimen <szaimen@e.mail.de>
13 lines
No EOL
403 B
JavaScript
13 lines
No EOL
403 B
JavaScript
if (document.hasFocus()) {
|
|
// hide reload button if the site reloads automatically
|
|
var list = document.getElementsByClassName("reload button");
|
|
for (var i = 0; i < list.length; i++) {
|
|
// list[i] is a node with the desired class name
|
|
list[i].style.display = 'none';
|
|
}
|
|
|
|
// set timeout for reload
|
|
setTimeout(function(){
|
|
window.location.reload(1);
|
|
}, 5000);
|
|
} |