2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 02:28:55 +00:00

Satisfy Travis

This commit is contained in:
zweicoder 2016-01-30 12:27:00 +08:00
parent 97425f9ab5
commit 494aa06685
2 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -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();
}