Skip to content

Commit

Permalink
fix: remove webbrowser open
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Mar 5, 2024
1 parent 78222ed commit a9d3662
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import os
import subprocess
import threading
import webbrowser
# import webbrowser
import process_type


Expand Down Expand Up @@ -355,8 +355,8 @@ def __init__(self, jrpc_webui_server_address: str, local_ip: str):
self.exec = ["npm", "--prefix", "webui", "run", "dev", "--", "--port", str(self.http_port), "--host", "0.0.0.0"]
self.env["VITE_DAEMON_JRPC_ADDRESS"] = jrpc_webui_server_address
self.run()
if WEBUI_PORT == "auto":
webbrowser.open(f"http://{local_ip}:{self.http_port}")
# if WEBUI_PORT == "auto":
# webbrowser.open(f"http://{local_ip}:{self.http_port}")


class JrpcWebuiServer:
Expand Down

0 comments on commit a9d3662

Please sign in to comment.