mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-04-02 04:51:49 +00:00
Fix linter errors
This commit is contained in:
parent
e4a4476e35
commit
df6f958904
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user