📝 Fix code style issue

* Change `var` to `let`.
* Change `function() {}` to `() => {}`.
* Use shorthand function syntax on object notation.
* Remove spaces between object notation brackets.
* Small fixes.
This commit is contained in:
Plusb Preco 2016-05-11 02:15:09 +09:00
parent 139a4f984a
commit f1b184ef78
23 changed files with 64 additions and 67 deletions

View file

@ -15,7 +15,7 @@ const {app, globalShortcut} = require('electron');
app.on('ready', () => {
// Register a 'CommandOrControl+X' shortcut listener.
const ret = globalShortcut.register('CommandOrControl+X', function() {
const ret = globalShortcut.register('CommandOrControl+X', () => {
console.log('CommandOrControl+X is pressed');
});