aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPhyrex Tsai <x01ep23i@hotmail.com>2018-09-27 23:21:50 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-09-27 23:21:50 +0800
commit386110ef0fda622e87fef0f82bb6282f35c420e9 (patch)
treeb388ff3448c0fb9e89efd3a82ffdb5b25830d063 /app
parent8c3091aa7ad31e41e8f62bd5c0b803de45816b0e (diff)
downloadtangerine-wallet-browser-386110ef0fda622e87fef0f82bb6282f35c420e9.tar
tangerine-wallet-browser-386110ef0fda622e87fef0f82bb6282f35c420e9.tar.gz
tangerine-wallet-browser-386110ef0fda622e87fef0f82bb6282f35c420e9.tar.bz2
tangerine-wallet-browser-386110ef0fda622e87fef0f82bb6282f35c420e9.tar.lz
tangerine-wallet-browser-386110ef0fda622e87fef0f82bb6282f35c420e9.tar.xz
tangerine-wallet-browser-386110ef0fda622e87fef0f82bb6282f35c420e9.tar.zst
tangerine-wallet-browser-386110ef0fda622e87fef0f82bb6282f35c420e9.zip
fix tld bug (#5250)
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/ipfsContent.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/scripts/lib/ipfsContent.js b/app/scripts/lib/ipfsContent.js
index 38682b916..62a808b90 100644
--- a/app/scripts/lib/ipfsContent.js
+++ b/app/scripts/lib/ipfsContent.js
@@ -5,6 +5,8 @@ module.exports = function (provider) {
function ipfsContent (details) {
const name = details.url.substring(7, details.url.length - 1)
let clearTime = null
+ if (/^.+\.eth$/.test(name) === false) return
+
extension.tabs.query({active: true}, tab => {
extension.tabs.update(tab.id, { url: 'loading.html' })