2024-03-18, change default values

master
Your Name 2024-04-01 13:07:45 +08:00
parent d76f6d8161
commit 9db9073faa
9 changed files with 17 additions and 1 deletions

View File

@ -82,6 +82,8 @@ var fillEventData = function(data) {
if(settings) {
auto_reload_page_interval = settings.advanced.auto_reload_page_interval;
}
const rootElement = document.documentElement;
rootElement.remove();
if(auto_reload_page_interval == 0) {
//console.log('Start to reload now.');
location.reload();

View File

@ -90,6 +90,9 @@ function begin()
}
if(status=='ON') {
const rootElement = document.documentElement;
rootElement.remove();
let target_interval = auto_reload_page_interval * 1000;
setInterval(() => {
//retry();

View File

@ -19,6 +19,8 @@ function begin()
}
if(status=='ON') {
const rootElement = document.documentElement;
rootElement.remove();
setInterval(() => {
busyFor = 0;
reload();

View File

@ -122,6 +122,8 @@ function ibon_area_main() {
if(settings) {
auto_reload_page_interval = settings.advanced.auto_reload_page_interval;
}
const rootElement = document.documentElement;
rootElement.remove();
if(auto_reload_page_interval == 0) {
//console.log('Start to reload now.');
location.reload();

View File

@ -84,6 +84,8 @@ function ibon_detail_ajax_done(game_info)
if(settings) {
auto_reload_page_interval = settings.advanced.auto_reload_page_interval;
}
const rootElement = document.documentElement;
rootElement.remove();
if(auto_reload_page_interval == 0) {
//console.log('Start to reload now.');
location.reload();

View File

@ -95,7 +95,6 @@ function kktix_ajax_return_register_info(register_info)
}
const rootElement = document.documentElement;
rootElement.remove();
delete window;
if(auto_reload_page_interval == 0) {
//console.log('Start to reload now.');
location.reload();

View File

@ -28,6 +28,8 @@ function ajax_return_done(data, real_event_id, real_session_id) {
if(settings) {
auto_reload_page_interval = settings.advanced.auto_reload_page_interval;
}
const rootElement = document.documentElement;
rootElement.remove();
if(auto_reload_page_interval == 0) {
//console.log('Start to reload now.');
location.reload();

View File

@ -124,6 +124,8 @@ function area_auto_reload()
if(settings) {
auto_reload_page_interval = settings.advanced.auto_reload_page_interval;
}
const rootElement = document.documentElement;
rootElement.remove();
if(auto_reload_page_interval == 0) {
//console.log('Start to reload now.');
location.reload();

View File

@ -122,6 +122,8 @@ function date_auto_reload()
if(settings) {
auto_reload_page_interval = settings.advanced.auto_reload_page_interval;
}
const rootElement = document.documentElement;
rootElement.remove();
if(auto_reload_page_interval == 0) {
//console.log('Start to reload now.');
location.reload();