Update WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Namhyeon Go 2025-04-10 02:27:42 +09:00 committed by GitHub
parent e853003bda
commit d42210f922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,13 +139,15 @@ namespace WelsonJS.Launcher
}
public static void StartResourceServer()
{
lock(typeof(Program))
{
if (resourceServer == null)
{
resourceServer = new ResourceServer(GetAppConfig("ResourceServerPrefix"), "editor.html");
}
}
}
public static void OpenWebBrowser(string url)
{
string userDataDir = Path.Combine(GetAppDataPath(), "EdgeUserProfile");