fix: handle shortcuts by default if no WebPreferences object exists (#14766)

DevTools webcontents do not have webpreferences

Fixes #14685
This commit is contained in:
Samuel Attard
2018-09-28 01:41:09 +10:00
committed by GitHub
parent 0d2a0c7583
commit 6be69048e6
6 changed files with 581 additions and 43 deletions

View File

@@ -3,6 +3,9 @@
"productName": "Electron Test",
"main": "static/main.js",
"version": "0.1.0",
"scripts": {
"postinstall": "node ../tools/run-if-exists.js node_modules/robotjs node-gyp rebuild"
},
"devDependencies": {
"basic-auth": "^2.0.0",
"bluebird": "^3.5.1",
@@ -25,5 +28,8 @@
"winreg": "^1.2.4",
"ws": "^5.2.0",
"yargs": "^11.0.0"
},
"optionalDependencies": {
"robotjs": "^0.5.1"
}
}