mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-11 07:41:04 +00:00
Satisfy Travis
This commit is contained in:
parent
97425f9ab5
commit
494aa06685
@ -40,7 +40,6 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
|
||||
},
|
||||
// after webpack path here should reference `resources/app/`
|
||||
icon: options.icon
|
||||
//icon: path.join(__dirname, '../', '/icon.png')
|
||||
});
|
||||
|
||||
let currentZoom = 1;
|
||||
|
@ -69,7 +69,7 @@ app.on('before-quit', () => {
|
||||
let appIcon = null;
|
||||
app.on('ready', () => {
|
||||
mainWindow = createMainWindow(appArgs, app.quit, setDockBadge);
|
||||
mainWindow.on('close', (e)=> {
|
||||
mainWindow.on('close', e => {
|
||||
if (!mainWindow.forceClose && appArgs.minimizeToTray) {
|
||||
e.preventDefault();
|
||||
mainWindow.hide();
|
||||
@ -83,7 +83,7 @@ app.on('ready', () => {
|
||||
{
|
||||
label: 'Show',
|
||||
type: 'normal',
|
||||
click: function (menuItem) {
|
||||
click: function() {
|
||||
mainWindow.show();
|
||||
}
|
||||
},
|
||||
@ -91,7 +91,7 @@ app.on('ready', () => {
|
||||
label: 'Minimize to Tray',
|
||||
type: 'checkbox',
|
||||
checked: appArgs.minimizeToTray || false,
|
||||
click: function (menuItem) {
|
||||
click: function(menuItem) {
|
||||
appArgs.minimizeToTray = menuItem.checked;
|
||||
fs.writeFileSync(APP_ARGS_FILE_PATH, JSON.stringify(appArgs));
|
||||
}
|
||||
@ -99,7 +99,7 @@ app.on('ready', () => {
|
||||
{
|
||||
label: 'Close',
|
||||
type: 'normal',
|
||||
click: function (menuItem) {
|
||||
click: function() {
|
||||
mainWindow.forceClose = true;
|
||||
app.quit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user