aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-27 21:07:45 +0800
committerDan <danjm.com@gmail.com>2018-03-27 21:07:45 +0800
commitbe2254b880c8c7bc17a139c3137dbe1e11c6060d (patch)
tree5620b1708b224e7003053341d1c0aea83f7fc615 /app/scripts
parentd2bd5687e8a1557a37947e4fd2638ed7f4b875f2 (diff)
downloadtangerine-wallet-browser-be2254b880c8c7bc17a139c3137dbe1e11c6060d.tar
tangerine-wallet-browser-be2254b880c8c7bc17a139c3137dbe1e11c6060d.tar.gz
tangerine-wallet-browser-be2254b880c8c7bc17a139c3137dbe1e11c6060d.tar.bz2
tangerine-wallet-browser-be2254b880c8c7bc17a139c3137dbe1e11c6060d.tar.lz
tangerine-wallet-browser-be2254b880c8c7bc17a139c3137dbe1e11c6060d.tar.xz
tangerine-wallet-browser-be2254b880c8c7bc17a139c3137dbe1e11c6060d.tar.zst
tangerine-wallet-browser-be2254b880c8c7bc17a139c3137dbe1e11c6060d.zip
Remove comments and console.logs
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/get-first-preferred-lang-code.js3
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 74dfe246c..849018f26 100644
--- a/app/scripts/lib/get-first-preferred-lang-code.js
+++ b/app/scripts/lib/get-first-preferred-lang-code.js
@@ -9,9 +9,8 @@ async function getFirstPreferredLangCode () {
const userPreferredLocaleCodes = await promisify(
extension.i18n.getAcceptLanguages,
{ errorFirst: false }
- )().catch(err => console.log('err123', err))
+ )()
const firstPreferredLangCode = userPreferredLocaleCodes.find(code => existingLocaleCodes.includes(code))
- // const firstPreferredLangCode = userPreferredLocaleCodes[0]
return firstPreferredLangCode || 'en'
}