2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-22 10:08:55 +00:00

Change eslint to disallow unused variables

This commit is contained in:
Jia Hao 2016-02-28 00:49:54 +08:00
parent 99fcb60a44
commit 8ef3137d02
3 changed files with 2 additions and 3 deletions

View File

@ -32,7 +32,6 @@ module.exports = {
'no-throw-literal': 0,
camelcase: 0,
'valid-jsdoc': 0,
'no-unused-vars': 1,
'no-path-concat': 1,
'quote-props': [2, 'as-needed']
},

View File

@ -70,7 +70,7 @@ app.on('login', (event, webContents, request, authInfo, callback) => {
createLoginWindow(callback);
});
ipcMain.on('notification', (event, title, opts) => {
ipcMain.on('notification', () => {
if (!isOSX() || mainWindow.isFocused()) {
return;
}

View File

@ -12,7 +12,7 @@ setNotificationCallback((title, opt) => {
ipcRenderer.send('notification', title, opt);
});
document.addEventListener('DOMContentLoaded', event => {
document.addEventListener('DOMContentLoaded', () => {
// do things
window.addEventListener('contextmenu', event => {