mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 10:38:55 +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/`
|
// after webpack path here should reference `resources/app/`
|
||||||
icon: options.icon
|
icon: options.icon
|
||||||
//icon: path.join(__dirname, '../', '/icon.png')
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let currentZoom = 1;
|
let currentZoom = 1;
|
||||||
|
@ -69,7 +69,7 @@ app.on('before-quit', () => {
|
|||||||
let appIcon = null;
|
let appIcon = null;
|
||||||
app.on('ready', () => {
|
app.on('ready', () => {
|
||||||
mainWindow = createMainWindow(appArgs, app.quit, setDockBadge);
|
mainWindow = createMainWindow(appArgs, app.quit, setDockBadge);
|
||||||
mainWindow.on('close', (e)=> {
|
mainWindow.on('close', e => {
|
||||||
if (!mainWindow.forceClose && appArgs.minimizeToTray) {
|
if (!mainWindow.forceClose && appArgs.minimizeToTray) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
mainWindow.hide();
|
mainWindow.hide();
|
||||||
@ -83,7 +83,7 @@ app.on('ready', () => {
|
|||||||
{
|
{
|
||||||
label: 'Show',
|
label: 'Show',
|
||||||
type: 'normal',
|
type: 'normal',
|
||||||
click: function (menuItem) {
|
click: function() {
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -99,7 +99,7 @@ app.on('ready', () => {
|
|||||||
{
|
{
|
||||||
label: 'Close',
|
label: 'Close',
|
||||||
type: 'normal',
|
type: 'normal',
|
||||||
click: function (menuItem) {
|
click: function() {
|
||||||
mainWindow.forceClose = true;
|
mainWindow.forceClose = true;
|
||||||
app.quit();
|
app.quit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user