Skip to content

Commit

Permalink
Fix errorDialog!
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadegh Hayeri committed Mar 11, 2020
1 parent ee5d04e commit 35d279b
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 192 deletions.
9 changes: 8 additions & 1 deletion gui/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ const { Proxy } = require('green-tunnel');
const path = require('path');
const os = require('os');

// diable any dialog box!
const electron = require('electron');
const dialog = electron.dialog;
dialog.showErrorBox = function(title, content) {
console.log(`${title}\n${content}`);
};

// if (require('electron-squirrel-startup')) return;
const setupEvents = require('./installers/windows/setupEvents');

Expand Down Expand Up @@ -172,4 +179,4 @@ ipcMain.on('on-off-button', (event, arg) => {
turnOff();
else
turnOn();
});
});
Loading

0 comments on commit 35d279b

Please sign in to comment.