aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/ipfsContent.js
diff options
context:
space:
mode:
authorYung chieh Tsai <x01ep23i@hotmail.com>2018-05-29 19:29:12 +0800
committerYung chieh Tsai <x01ep23i@hotmail.com>2018-05-29 19:29:12 +0800
commit384cb126dd3cdf0d1dcf67525d7a390436ec6ea2 (patch)
tree716362cbd76a32e9bb6d384e4c940d72f7f74dea /app/scripts/lib/ipfsContent.js
parent829deacb57a23ec8027269c93cdef3f3735d1710 (diff)
downloadtangerine-wallet-browser-384cb126dd3cdf0d1dcf67525d7a390436ec6ea2.tar
tangerine-wallet-browser-384cb126dd3cdf0d1dcf67525d7a390436ec6ea2.tar.gz
tangerine-wallet-browser-384cb126dd3cdf0d1dcf67525d7a390436ec6ea2.tar.bz2
tangerine-wallet-browser-384cb126dd3cdf0d1dcf67525d7a390436ec6ea2.tar.lz
tangerine-wallet-browser-384cb126dd3cdf0d1dcf67525d7a390436ec6ea2.tar.xz
tangerine-wallet-browser-384cb126dd3cdf0d1dcf67525d7a390436ec6ea2.tar.zst
tangerine-wallet-browser-384cb126dd3cdf0d1dcf67525d7a390436ec6ea2.zip
Update lib
Diffstat (limited to 'app/scripts/lib/ipfsContent.js')
-rw-r--r--app/scripts/lib/ipfsContent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/ipfsContent.js b/app/scripts/lib/ipfsContent.js
index 4d66745e9..bf04c854b 100644
--- a/app/scripts/lib/ipfsContent.js
+++ b/app/scripts/lib/ipfsContent.js
@@ -16,7 +16,7 @@ module.exports = function (provider) {
clearTimeout(clearTime)
let url = 'https://gateway.ipfs.io/ipfs/' + ipfsHash
return fetch(url, { method: 'HEAD' }).then(response => response.status).then(statusCode => {
- if (statusCode !== 200) return 'Local'
+ if (statusCode !== 200) return extension.tabs.update(tab.id, { url: '404.html' })
extension.tabs.update(tab.id, { url: url })
})
.catch(err => {