mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-17 11:45:38 +08:00
Opt: Auto refresh page when connection lost
This commit is contained in:
parent
d255c116f2
commit
9c75d2388e
2
gui.py
2
gui.py
@ -885,6 +885,8 @@ if __name__ == "__main__":
|
||||
lang.reload()
|
||||
|
||||
def index():
|
||||
# Auto refresh page when connection lost
|
||||
run_js('WebIO._state.CurrentSession.on_session_close(()=>{setTimeout(()=>location.reload(), 5000)})')
|
||||
if args.key != '' and not login(args.key):
|
||||
logger.warning(f"{info.user_ip} login failed.")
|
||||
time.sleep(2)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user