Skip to content

Commit

Permalink
Eslint Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaathavanJkr committed Dec 17, 2019
1 parent 2918cb5 commit 8dab62e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var PUNCTUATION_KEY_CODES = [46, 33, 58, 63, 47, 45, 190, 171, 49]; // eslint-di

/* global config, modeEnabled, synchronizeTextareaHeights, persistChoices, getLangByCode, sendEvent, onlyUnique, restoreChoices
getDynamicLocalization, locale, ajaxSend, ajaxComplete, localizeInterface, filterLangList, cache, readCache, iso639Codes,
callApy, apyRequestTimeout, isURL, removeSoftHyphens, parentLang, isVariant, langDirection, languages, iso639CodesInverse, stored */
callApy, apyRequestTimeout, isURL, removeSoftHyphens, parentLang, isVariant, langDirection, languages, iso639CodesInverse, store */
/* global ENTER_KEY_CODE, HTTP_BAD_REQUEST_CODE, HTTP_OK_CODE, SPACE_KEY_CODE, XHR_DONE, XHR_LOADING */

if(modeEnabled('translation')) {
Expand Down Expand Up @@ -1290,12 +1290,12 @@ function setDefaultSrcLang() {
}

function setLangs(lang) {
if(!store.get('curSrcLang')){
if(!store.get('curSrcLang')) {
curSrcLang = iso639CodesInverse[lang];
autoSelectDstLang();
}
}

// default to first available browser preference pair
var prefSrcLang;
var browserLangs = window.navigator.languages; // Chrome, Mozilla and Safari
Expand Down

0 comments on commit 8dab62e

Please sign in to comment.