electron app: remove debugging message box for release

This commit is contained in:
Ilya Kreymer
2020-10-25 09:40:29 -07:00
parent e12407983c
commit 21b796fa62
+1 -2
View File
@@ -3,7 +3,7 @@
import fetch from 'node-fetch'; import fetch from 'node-fetch';
import { Headers } from 'node-fetch'; import { Headers } from 'node-fetch';
import {app, session, BrowserWindow, ipcMain, shell, dialog } from 'electron'; import {app, session, BrowserWindow, ipcMain, shell } from 'electron';
import path from 'path'; import path from 'path';
import fs from 'fs'; import fs from 'fs';
@@ -91,7 +91,6 @@ function main() {
} else { } else {
app.on('second-instance', (event, commandLine, workingDirectory) => { app.on('second-instance', (event, commandLine, workingDirectory) => {
// Just create a new window in case of second instance request // Just create a new window in case of second instance request
dialog.showErrorBox("new window", JSON.stringify(commandLine));
createWindow(commandLine); createWindow(commandLine);
}); });
} }