angular-electron
angular-electron copied to clipboard
Include module without electron cause error
Including the module without Electron cause error. Can be useful including it in a "progressive web app" where some build haven't electron code. Example web, android, ios, desktop with electron.
It can be solved creating a empty object electronRequire
Your MR worked for me. Thanks @gimox
👍
Remember to check if ipcRenderer has electron object doing something like:
// es6 syntax
if (angular.isFunction(this.ipcRenderer.on)) {
this.ipcRenderer.on('hoto:home', (event, arg) => {
this.$state.go('main.home');
});
...
}