diff --git a/main.py b/main.py index 0617727271..4de80152c6 100644 --- a/main.py +++ b/main.py @@ -187,7 +187,7 @@ def auto_opentab_delay(): def open(): time.sleep(2) # 打开浏览器 DARK_MODE, = get_conf('DARK_MODE') - if DARK_MODE: webbrowser.open_new_tab(f"http://localhost:{PORT}/?__dark-theme=true") + if DARK_MODE: webbrowser.open_new_tab(f"http://localhost:{PORT}/?__theme=dark") else: webbrowser.open_new_tab(f"http://localhost:{PORT}") threading.Thread(target=open, name="open-browser", daemon=True).start() threading.Thread(target=auto_update, name="self-upgrade", daemon=True).start()