ELECTRON-800: add dev tools menu item (#532)

- add dev tools menu item to the troubleshooting menu
- add support to dynamically read the dev tools config from file
This commit is contained in:
Vishwas Shashidhar
2018-12-04 12:13:19 -08:00
committed by GitHub
parent 4c58634010
commit 252456536c
3 changed files with 27 additions and 4 deletions

View File

@@ -395,6 +395,11 @@ function readConfigFileSync() {
}
const readConfigFromFile = (key) => {
let data = readConfigFileSync();
return data[key];
}
module.exports = {
configFileName,
@@ -411,6 +416,7 @@ module.exports = {
clearCachedConfigs,
readConfigFileSync,
readConfigFromFile,
// use only if you specifically need to read global config fields
getGlobalConfigField,