mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-21 16:38:41 -06:00
fix linting issues
This commit is contained in:
parent
fc18c4716f
commit
11e05d8493
@ -845,10 +845,10 @@ eventEmitter.on('notificationSettings', (notificationSettings) => {
|
||||
});
|
||||
|
||||
eventEmitter.on('language-changed', (opts) => {
|
||||
const lang = opts && opts.language || app.getLocale();
|
||||
log.send(logLevels.INFO, `language changed to ${lang}. Updating menu and user config`);
|
||||
rebuildMenu(lang);
|
||||
updateConfigField('locale', lang);
|
||||
const language = opts && opts.language || app.getLocale();
|
||||
log.send(logLevels.INFO, `language changed to ${language}. Updating menu and user config`);
|
||||
rebuildMenu(language);
|
||||
updateConfigField('locale', language);
|
||||
});
|
||||
|
||||
function rebuildMenu(language) {
|
||||
|
@ -11,7 +11,7 @@
|
||||
"prebuild": "npm run rebuild && npm run browserify-preload",
|
||||
"browserify-preload": "browserify -o js/preload/_preloadMain.js -x electron --insert-global-vars=__filename,__dirname js/preload/preloadMain.js --exclude electron-spellchecker",
|
||||
"rebuild": "electron-rebuild -f",
|
||||
"dev": "npm run prebuild && electron .",
|
||||
"dev": "npm run prebuild && cross-env ELECTRON_DEV=true electron .",
|
||||
"test": "npm run lint && npm rebuild --build-from-source && cross-env ELECTRON_QA=true jest --config tests/jest_unit.json --runInBand && npm run rebuild",
|
||||
"spectron-test": "npm run lint && npm rebuild --build-from-source robotjs && cross-env ELECTRON_QA=true jest --config tests/spectron/jest_spectron.json --runInBand && npm run rebuild",
|
||||
"demo-win": "npm run prebuild && cross-env ELECTRON_DEV=true electron . --url=file:///demo/index.html",
|
||||
|
Loading…
Reference in New Issue
Block a user