1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

fix tld bug (#5250)

This commit is contained in:
Phyrex Tsai 2018-09-27 23:21:50 +08:00 committed by Whymarrh Whitby
parent 8c3091aa7a
commit 386110ef0f

View File

@ -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' })