From ef75efdcd593637fc01b770086d4b71436d651b3 Mon Sep 17 00:00:00 2001 From: "cn.yimian.xyz" Date: Tue, 24 Aug 2021 11:10:19 +0800 Subject: [PATCH] fast_fetch --- index.html | 2 +- js/update.js | 4 ++-- login.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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);