mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
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:
committed by
GitHub
parent
4c58634010
commit
252456536c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user