I have followed the  tutorial and change the ipc usages based on . Here is what I have done:
replace var ipc = require(‘ipc’); with var ipcMain = require(‘electron’).ipcMain
replace var ipc = require(‘ipc’); with var ipcRenderer = require(‘electron’).ipcRenderer
After the replacement, the globalShortcut stops working. What may be the issue?