mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
remove loglevel
This commit is contained in:
parent
7edde61c12
commit
01a1eff8a8
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user