1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-12-05 09:14:28 +01:00

Disable process reload during dev

This commit is contained in:
Bernd Schoolmann 2025-12-05 05:59:44 +01:00
parent 1bfff49ef5
commit dc1f02a55b
No known key found for this signature in database

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("Skipping render process reload 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());