aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-07-16 21:05:08 +0800
committerbitpshr <mail@bitpshr.net>2018-07-19 20:04:17 +0800
commitd24b5b76fdd02c47942cbc20b471718bd7bda91d (patch)
tree0321d9392af7270b31ab5f5ed1279dd4a3e7e393
parent7ed0df4f05b91bff2cde836195973b700e5c5e83 (diff)
downloadtangerine-wallet-browser-d24b5b76fdd02c47942cbc20b471718bd7bda91d.tar
tangerine-wallet-browser-d24b5b76fdd02c47942cbc20b471718bd7bda91d.tar.gz
tangerine-wallet-browser-d24b5b76fdd02c47942cbc20b471718bd7bda91d.tar.bz2
tangerine-wallet-browser-d24b5b76fdd02c47942cbc20b471718bd7bda91d.tar.lz
tangerine-wallet-browser-d24b5b76fdd02c47942cbc20b471718bd7bda91d.tar.xz
tangerine-wallet-browser-d24b5b76fdd02c47942cbc20b471718bd7bda91d.tar.zst
tangerine-wallet-browser-d24b5b76fdd02c47942cbc20b471718bd7bda91d.zip
Update variable name
-rw-r--r--app/scripts/lib/resolver.js4
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) => {