Merge branch 'master' into patch-1
commit
2980ac4261
4
app.js
4
app.js
|
@ -27,7 +27,9 @@ function checkGateways (gateways) {
|
|||
let checked = 0
|
||||
gateways.forEach((gateway) => {
|
||||
const gatewayAndHash = gateway.replace(':hash', hashToTest)
|
||||
fetch(gatewayAndHash)
|
||||
// opt-out from gateway redirects done by browser extension
|
||||
const testUrl = gatewayAndHash + '#x-ipfs-companion-no-redirect'
|
||||
fetch(testUrl)
|
||||
.then(res => res.text())
|
||||
.then((text) => {
|
||||
const matched = text.trim() === hashString.trim()
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
"https://ipfs.wa.hle.rs/ipfs/:hash",
|
||||
"https://api.wisdom.sh/ipfs/:hash",
|
||||
"https://gateway.blocksec.com/ipfs/:hash",
|
||||
"https://ipfs.netw0rk.io/ipfs/:hash",
|
||||
"https://ipfs.renehsz.com/ipfs/:hash"
|
||||
"https://ipfs.renehsz.com/ipfs/:hash",
|
||||
"https://cloudflare-ipfs.com/ipfs/:hash",
|
||||
"https://ipns.co/:hash",
|
||||
"https://ipfs.netw0rk.io/ipfs/:hash"
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue