all main modules have init() function
This commit is contained in:
@@ -3,9 +3,10 @@ module.exports = {
|
||||
}
|
||||
|
||||
var electron = require('electron')
|
||||
var globalShortcut = electron.globalShortcut
|
||||
var localShortcut = require('electron-localshortcut')
|
||||
|
||||
var globalShortcut = electron.globalShortcut
|
||||
|
||||
function init (menu, windows) {
|
||||
// Special "media key" for play/pause, available on some keyboards
|
||||
globalShortcut.register('MediaPlayPause', () => windows.main.send('dispatch', 'playPause'))
|
||||
|
||||
Reference in New Issue
Block a user