aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorYung chieh Tsai <x01ep23i@hotmail.com>2018-06-01 11:27:05 +0800
committerYung chieh Tsai <x01ep23i@hotmail.com>2018-06-01 11:27:05 +0800
commit77d17f2d55a3e3ed704324020f6ec4b42cc4dde2 (patch)
tree78d1401fd56d9f4a2eb0fcff3b3a60180061b41b /app/scripts
parent4e14313ba8a72648be810f3e78d6e5849b363d11 (diff)
downloadtangerine-wallet-browser-77d17f2d55a3e3ed704324020f6ec4b42cc4dde2.tar
tangerine-wallet-browser-77d17f2d55a3e3ed704324020f6ec4b42cc4dde2.tar.gz
tangerine-wallet-browser-77d17f2d55a3e3ed704324020f6ec4b42cc4dde2.tar.bz2
tangerine-wallet-browser-77d17f2d55a3e3ed704324020f6ec4b42cc4dde2.tar.lz
tangerine-wallet-browser-77d17f2d55a3e3ed704324020f6ec4b42cc4dde2.tar.xz
tangerine-wallet-browser-77d17f2d55a3e3ed704324020f6ec4b42cc4dde2.tar.zst
tangerine-wallet-browser-77d17f2d55a3e3ed704324020f6ec4b42cc4dde2.zip
Update ipfs to infura
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/ipfsContent.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/lib/ipfsContent.js b/app/scripts/lib/ipfsContent.js
index bf04c854b..46131b266 100644
--- a/app/scripts/lib/ipfsContent.js
+++ b/app/scripts/lib/ipfsContent.js
@@ -14,13 +14,13 @@ module.exports = function (provider) {
resolver.resolve(name, provider).then(ipfsHash => {
clearTimeout(clearTime)
- let url = 'https://gateway.ipfs.io/ipfs/' + ipfsHash
+ let url = 'https://ipfs.infura.io/ipfs/' + ipfsHash
return fetch(url, { method: 'HEAD' }).then(response => response.status).then(statusCode => {
if (statusCode !== 200) return extension.tabs.update(tab.id, { url: '404.html' })
extension.tabs.update(tab.id, { url: url })
})
.catch(err => {
- url = 'https://gateway.ipfs.io/ipfs/' + ipfsHash
+ url = 'https://ipfs.infura.io/ipfs/' + ipfsHash
extension.tabs.update(tab.id, {url: url})
return err
})