Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions angular-electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ angular.module('angular-electron').directive('externalLink', ['shell', function

angular.module('angular-electron').constant('process', electronProcess);

if (typeof electronRequire == 'undefined') {
var electronRequire = function () {
return {
remote: {
getCurrentWindow: function () {
return false;
},
getCurrentWebContents: function () {
return false;
}
}
};
}
}

var remoteModules = ['app', 'autoUpdater', 'BrowserWindow', 'contentTracing', 'dialog',
'globalShortcut', 'Menu', 'MenuItem', 'powerMonitor', 'powerSaveBlocker',
'protocol', 'webContents', 'tray'];
Expand Down
2 changes: 1 addition & 1 deletion angular-electron.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-electron",
"version": "0.2.1",
"version": "0.2.2",
"description": "angularjs helpers for electron apps",
"repository": {
"type": "git",
Expand Down
15 changes: 15 additions & 0 deletions src/process.js
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
angular.module('angular-electron').constant('process', electronProcess);

if (typeof electronRequire == 'undefined') {
var electronRequire = function () {
return {
remote: {
getCurrentWindow: function () {
return false;
},
getCurrentWebContents: function () {
return false;
}
}
};
}
}