context menu (fixes #42)

This commit is contained in:
Eugene Pankov
2017-09-09 21:42:48 +02:00
parent 558c72bb42
commit e255ca7737
8 changed files with 974 additions and 23 deletions

View File

@@ -15,13 +15,13 @@ export class ElectronService {
constructor () {
this.electron = require('electron')
this.remote = this.electron.remote
this.app = this.electron.remote.app
this.screen = this.electron.remote.screen
this.dialog = this.electron.remote.dialog
this.app = this.remote.app
this.screen = this.remote.screen
this.dialog = this.remote.dialog
this.shell = this.electron.shell
this.clipboard = this.electron.clipboard
this.ipcRenderer = this.electron.ipcRenderer
this.globalShortcut = this.electron.remote.globalShortcut
this.globalShortcut = this.remote.globalShortcut
}
remoteRequire (name: string): any {