1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

[SM-327] Electron hard reset (#3988)

This commit is contained in:
Oscar Hinton
2022-11-10 15:06:08 +01:00
committed by GitHub
parent 586ae4346c
commit 4debb6647c
5 changed files with 192 additions and 3 deletions

View File

@@ -64,8 +64,12 @@ export class Main {
const watch = args.some((val) => val === "--watch");
if (watch) {
const execName = process.platform === "win32" ? "electron.cmd" : "electron";
// eslint-disable-next-line
require("electron-reload")(__dirname, {});
require("electron-reload")(__dirname, {
electron: path.join(__dirname, "../../../", "node_modules", ".bin", execName),
electronArgv: ["--inspect=5858", "--watch"],
});
}
this.logService = new ElectronLogService(null, app.getPath("userData"));