1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
Gabriel 2023-03-31 19:39:30 +02:00
parent 59bfef824a
commit adc50d51af

View File

@ -8,7 +8,7 @@ import clusterManagerInjectable from "./cluster/manager.injectable";
import loggerInjectable from "../common/logger.injectable";
import closeAllWindowsInjectable from "./start-main-application/lens-window/hide-all-windows/close-all-windows.injectable";
import emitAppEventInjectable from "../common/app-event-bus/emit-event.injectable";
const { app, crashReporter } = require('electron');
const { app, crashReporter } = require("electron");
const stopServicesAndExitAppInjectable = getInjectable({
id: "stop-services-and-exit-app",
@ -22,8 +22,8 @@ const stopServicesAndExitAppInjectable = getInjectable({
return () => {
logger.info("CRASHREPORTER:START");
logger.info(app.getPath('crashDumps'))
crashReporter.start({ submitURL: '', uploadToServer: false })
logger.info(app.getPath("crashDumps"));
crashReporter.start({ submitURL: "", uploadToServer: false });
emitAppEvent({ name: "service", action: "close" });
closeAllWindows();
clusterManager.stop();