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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user