diff options
author | bitpshr <mail@bitpshr.net> | 2018-07-16 21:05:08 +0800 |
---|---|---|
committer | bitpshr <mail@bitpshr.net> | 2018-07-19 20:04:17 +0800 |
commit | d24b5b76fdd02c47942cbc20b471718bd7bda91d (patch) | |
tree | 0321d9392af7270b31ab5f5ed1279dd4a3e7e393 /app/scripts/lib | |
parent | 7ed0df4f05b91bff2cde836195973b700e5c5e83 (diff) | |
download | tangerine-wallet-browser-d24b5b76fdd02c47942cbc20b471718bd7bda91d.tar.gz tangerine-wallet-browser-d24b5b76fdd02c47942cbc20b471718bd7bda91d.tar.zst tangerine-wallet-browser-d24b5b76fdd02c47942cbc20b471718bd7bda91d.zip |
Update variable name
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/resolver.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/lib/resolver.js b/app/scripts/lib/resolver.js index cbda0c028..ff0fed161 100644 --- a/app/scripts/lib/resolver.js +++ b/app/scripts/lib/resolver.js @@ -60,8 +60,8 @@ function getRegistrar (type) { module.exports.resolve = function (name, provider) { const path = name.split('.') - const tld = path[path.length - 1] - if (tld === 'eth' || tld === 'test') { + const topLevelDomain = path[path.length - 1] + if (topLevelDomain === 'eth' || topLevelDomain === 'test') { return ens(name, provider) } else { return new Promise((resolve, reject) => { |