diff --git a/index.html b/index.html
index 8fda833..b75db87 100644
--- a/index.html
+++ b/index.html
@@ -41,7 +41,7 @@
}
window.location.href='https://user.yimian.xyz/';
}
- });
+ }, false, true);
diff --git a/js/update.js b/js/update.js
index 3dea9e8..a3ca2f0 100644
--- a/js/update.js
+++ b/js/update.js
@@ -53,13 +53,13 @@ $(function(){
if(session.get('group') == 'anonymous' || !session.get('hash')){
window.location.replace('/login.html?require='+page.params.require);
}
- });
+ }, false, true);
}else{
session.onload(function(){
if(session.get('group') == 'anonymous' || !session.get('hash')){
window.location.replace('/login.html');
}
- });
+ }, false, true);
}
$('.change-login').hide();
diff --git a/login.html b/login.html
index c5ac1b2..d33c712 100644
--- a/login.html
+++ b/login.html
@@ -110,7 +110,7 @@ session.onload(()=>{
if(session.get('group') != 'anonymous'){
window.location.replace('/'+(page.params.hasOwnProperty('require')?('?require='+page.params.require):''));
}
-});
+}, false, true);