ngx-electron
Version:
An Angular wrapper for Electron's Renderer APIs
2 lines • 3.76 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("ngx-electron",["exports","@angular/core"],t):t((e=e||self)["ngx-electron"]={},e.ng.core)}(this,function(e,t){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};var n=function(){function e(){}return Object.defineProperty(e.prototype,"electron",{get:function(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMacOS",{get:function(){return this.isElectronApp&&"darwin"===process.platform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isWindows",{get:function(){return this.isElectronApp&&"win32"===process.platform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLinux",{get:function(){return this.isElectronApp&&"linux"===process.platform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isX86",{get:function(){return this.isElectronApp&&"ia32"===process.arch},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isX64",{get:function(){return this.isElectronApp&&"x64"===process.arch},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isArm",{get:function(){return this.isElectronApp&&"arm"===process.arch},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desktopCapturer",{get:function(){return this.electron?this.electron.desktopCapturer:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ipcRenderer",{get:function(){return this.electron?this.electron.ipcRenderer:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"remote",{get:function(){return this.electron?this.electron.remote:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"webFrame",{get:function(){return this.electron?this.electron.webFrame:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clipboard",{get:function(){return this.electron?this.electron.clipboard:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"crashReporter",{get:function(){return this.electron?this.electron.crashReporter:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"process",{get:function(){return this.remote?this.remote.process:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nativeImage",{get:function(){return this.electron?this.electron.nativeImage:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"screen",{get:function(){return this.electron?this.remote.screen:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shell",{get:function(){return this.electron?this.electron.shell:null},enumerable:!0,configurable:!0}),e}();var o=function(e){function n(){return e.call(this)||this}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[]},n}(n),i=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[],exports:[],providers:[{provide:n,useClass:o}]}]}],e}();e.ElectronService=n,e.ElectronServiceRef=o,e.NgxElectronModule=i,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-electron.umd.min.js.map