From 442aafd2c56972614ba1f634c39a803a7f38db39 Mon Sep 17 00:00:00 2001 From: Araxeus Date: Sun, 2 May 2021 23:25:20 +0300 Subject: [PATCH] remove redundant dialog import --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 80ba9efe..75d85348 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,6 @@ const path = require("path"); const electron = require("electron"); -const { dialog } = require("electron"); const is = require("electron-is"); const unhandled = require("electron-unhandled"); const { autoUpdater } = require("electron-updater"); @@ -327,7 +326,7 @@ function showUnresponsiveDialog(win, details) { if (!!details) { console.log("Unresponsive Error!\n"+JSON.stringify(details, null, "\t")) } - dialog.showMessageBox(win, { + electron.dialog.showMessageBox(win, { type: "error", title: "Window Unresponsive", message: "The Application is Unresponsive",