diff options
author | Jenny Pollack <jennypollack3@gmail.com> | 2018-06-07 09:35:41 +0800 |
---|---|---|
committer | Jenny Pollack <jennypollack3@gmail.com> | 2018-06-07 09:35:41 +0800 |
commit | 01a1eff8a82167217b4d805e8c09f49ad0109aae (patch) | |
tree | 9f5215f6ef022a552838f1fe4442b858aec4139d /app/scripts/lib | |
parent | 7edde61c1231b1df6023ac458559b8a008bf300d (diff) | |
download | tangerine-wallet-browser-01a1eff8a82167217b4d805e8c09f49ad0109aae.tar tangerine-wallet-browser-01a1eff8a82167217b4d805e8c09f49ad0109aae.tar.gz tangerine-wallet-browser-01a1eff8a82167217b4d805e8c09f49ad0109aae.tar.bz2 tangerine-wallet-browser-01a1eff8a82167217b4d805e8c09f49ad0109aae.tar.lz tangerine-wallet-browser-01a1eff8a82167217b4d805e8c09f49ad0109aae.tar.xz tangerine-wallet-browser-01a1eff8a82167217b4d805e8c09f49ad0109aae.tar.zst tangerine-wallet-browser-01a1eff8a82167217b4d805e8c09f49ad0109aae.zip |
remove loglevel
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/get-first-preferred-lang-code.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/scripts/lib/get-first-preferred-lang-code.js b/app/scripts/lib/get-first-preferred-lang-code.js index 89239a013..4d4d9df9a 100644 --- a/app/scripts/lib/get-first-preferred-lang-code.js +++ b/app/scripts/lib/get-first-preferred-lang-code.js @@ -1,7 +1,6 @@ const extension = require('extensionizer') const promisify = require('pify') const allLocales = require('../../_locales/index.json') -const log = require('loglevel') const getPreferredLocales = extension.i18n ? promisify( extension.i18n.getAcceptLanguages, @@ -25,7 +24,7 @@ async function getFirstPreferredLangCode () { if(!userPreferredLocaleCodes){ userPreferredLocaleCodes = [] } - + const firstPreferredLangCode = userPreferredLocaleCodes .map(code => code.toLowerCase()) .find(code => existingLocaleCodes.includes(code)) |