Update Cef and npm packages

This commit is contained in:
Natsumi
2024-08-28 13:55:49 +12:00
parent 6ac1a6570b
commit bc565abdae
7 changed files with 1740 additions and 1993 deletions

View File

@@ -29,7 +29,8 @@ namespace VRCX
PersistSessionCookies = true,
PersistUserPreferences = true,
UserAgent = Program.Version,
BrowserSubprocessPath = Environment.ProcessPath
BrowserSubprocessPath = Environment.ProcessPath,
BackgroundColor = 0xFF101010
};
cefSettings.RegisterScheme(new CefCustomScheme
@@ -60,8 +61,9 @@ namespace VRCX
if (Program.LaunchDebug)
{
// it's dead fuck https://github.com/chromiumembedded/cef/issues/3740
logger.Info("Debug mode enabled");
cefSettings.RemoteDebuggingPort = 8088;
cefSettings.RemoteDebuggingPort = 8089;
cefSettings.CefCommandLineArgs["remote-allow-origins"] = "*";
}

View File

@@ -29,7 +29,6 @@ namespace VRCX
{
Instance = this;
InitializeComponent();
// adding a 5s delay here to avoid excessive writes to disk
_saveTimer = new Timer();
@@ -42,8 +41,9 @@ namespace VRCX
Icon = icon;
TrayIcon.Icon = icon;
}
catch
catch (Exception ex)
{
jslogger.Error(ex);
}
Browser = new ChromiumWebBrowser("file://vrcx/index.html")
@@ -94,8 +94,9 @@ namespace VRCX
Size = size;
}
}
catch
catch (Exception ex)
{
jslogger.Error(ex);
}
try
@@ -123,8 +124,9 @@ namespace VRCX
WindowState = state;
}
}
catch
catch (Exception ex)
{
jslogger.Error(ex);
}
// 가끔 화면 위치가 안맞음.. 이걸로 해결 될지는 모르겠음
@@ -148,6 +150,7 @@ namespace VRCX
SaveWindowState();
_saveTimer?.Stop();
}
private void MainForm_Move(object sender, System.EventArgs e)
{
if (WindowState != FormWindowState.Normal)
@@ -170,7 +173,6 @@ namespace VRCX
}
}
private void SaveWindowState()
{
VRCXStorage.Instance.Set("VRCX_LocationX", LastLocationX.ToString());