fix linting issues

This commit is contained in:
Vishwas Shashidhar 2018-06-25 15:13:38 +05:30
parent fc18c4716f
commit 11e05d8493
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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",