1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 22:13:32 +00:00

[No ticket] Disable process reload on desktop during dev builds (#18905)

* Disable process reload on desktop during dev builds

* Fix linting
This commit is contained in:
Bernd Schoolmann
2026-02-11 15:34:24 +01:00
committed by GitHub
parent d237994aae
commit e2710ee14a

View File

@@ -55,6 +55,11 @@ export class WindowMain {
// Perform a hard reload of the render process by crashing it. This is suboptimal but ensures that all memory gets
// cleared, as the process itself will be completely garbage collected.
ipcMain.on("reload-process", async () => {
if (isDev()) {
this.logService.info("Process reload requested, but skipping in development mode");
return;
}
this.logService.info("Reloading render process");
// User might have changed theme, ensure the window is updated.
this.win.setBackgroundColor(await this.getBackgroundColor());