()
| 34 | } |
| 35 | |
| 36 | export function initCrashReporter() { |
| 37 | const dir = join(app.getPath("userData"), "Crashpad") |
| 38 | mkdirSync(dir, { recursive: true }) |
| 39 | app.setPath("crashDumps", dir) |
| 40 | crashReporter.start({ uploadToServer: false, compress: true }) |
| 41 | write("crash", "crash reporter started", { path: dir }) |
| 42 | } |
| 43 | |
| 44 | export async function startNetLog() { |
| 45 | if (netLog.currentlyLogging) return |