2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-06-29 00:23:47 +00:00

Fix linter errors

This commit is contained in:
Gary Moon 2016-02-23 19:14:11 -05:00
parent e4a4476e35
commit df6f958904

View File

@ -134,12 +134,12 @@ function createMenu(nativefierVersion, onQuit, onGoBack, onGoForward, onZoomIn,
click: (item, focusedWindow) => { click: (item, focusedWindow) => {
if (focusedWindow) { if (focusedWindow) {
dialog.showMessageBox(focusedWindow, { dialog.showMessageBox(focusedWindow, {
type:"warning", type: 'warning',
buttons:["Yes","Cancel"], buttons: ['Yes', 'Cancel'],
defaultId: 1, defaultId: 1,
title:"Clear cache confirmation", title: 'Clear cache confirmation',
message:"This will clear all data (cookies, local storage etc) from this app. \nAre you sure you wish to proceed?" message: 'This will clear all data (cookies, local storage etc) from this app. Are you sure you wish to proceed?'
}, (response) => { }, response => {
if (response === 0) { if (response === 0) {
focusedWindow.webContents.session.clearStorageData({}, focusedWindow.webContents.session.clearStorageData({},
() => { () => {
@ -149,8 +149,9 @@ function createMenu(nativefierVersion, onQuit, onGoBack, onGoForward, onZoomIn,
}); });
} }
}); });
} else { //FIXME: Not sure what to do here } else {
dialog.showErrorBox("No focused window", "No focused window"); // Not sure what else to do here
dialog.showErrorBox('No focused window', 'No focused window');
} }
} }
}, },
@ -161,8 +162,9 @@ function createMenu(nativefierVersion, onQuit, onGoBack, onGoForward, onZoomIn,
focusedWindow.webContents.session.clearCache(() => { focusedWindow.webContents.session.clearCache(() => {
focusedWindow.reload(); focusedWindow.reload();
}); });
} else { //FIXME: Not sure what to do here } else {
dialog.showErrorBox("No focused window", "No focused window"); // Not sure what else to do here
dialog.showErrorBox('No focused window', 'No focused window');
} }
} }
}, },