listenMainEvents() {
    ipc.on('register-context-action', this._registerAction);
    ipc.on('unregister-context-action', this._unregisterContextAction);
    window.addEventListener('contextmenu', this._contextMenuHandler);
    document.body.addEventListener('click', this._clickHandler);
  }
/**
   * Listens for main process and window events.
   */
Listens for main process and window events.
Listens for main process and window events .
listenMainEvents() {
    ipc.on('register-context-action', this._registerAction);
    ipc.on('unregister-context-action', this._unregisterContextAction);
    window.addEventListener('contextmenu', this._contextMenuHandler);
    document.body.addEventListener('click', this._clickHandler);
  }
listenMainEvents ( ) { ipc . on ( 'register-context-action' , this . _registerAction ) ; ipc . on ( 'unregister-context-action' , this . _unregisterContextAction ) ; window . addEventListener ( 'contextmenu' , this . _contextMenuHandler ) ; document . body . addEventListener ( 'click' , this . _clickHandler ) ; }
Listens for main process and window events.
Listens for main process and window events .