shortcuts.js: Consistent exported method naming
Exposed methods whose sole purpose is notify the module of an event firing, should start with "on".
This commit is contained in:
@@ -82,12 +82,12 @@ function init () {
|
||||
|
||||
ipcMain.on('onPlayerOpen', function () {
|
||||
menu.onPlayerOpen()
|
||||
shortcuts.registerPlayerShortcuts()
|
||||
shortcuts.onPlayerOpen()
|
||||
})
|
||||
|
||||
ipcMain.on('onPlayerClose', function () {
|
||||
menu.onPlayerClose()
|
||||
shortcuts.unregisterPlayerShortcuts()
|
||||
shortcuts.onPlayerOpen()
|
||||
})
|
||||
|
||||
ipcMain.on('focusWindow', function (e, windowName) {
|
||||
|
||||
Reference in New Issue
Block a user