MaysWind 6 years ago
parent
commit
7f05d08e2b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/scripts/services/ariaNgNativeElectronService.js

+ 1 - 1
app/scripts/services/ariaNgNativeElectronService.js

@@ -57,7 +57,7 @@
                 return shell.openExternal(url);
             },
             registerEvent: function (event, callback) {
-                this.getCurrentWindow().on(event, callback);
+                this.getCurrentWindow().on && this.getCurrentWindow().on(event, callback);
             },
             isMaximized: function () {
                 return this.getCurrentWindow().isMaximized && this.getCurrentWindow().isMaximized();