mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
correction: a domain name should only be expected after /ipns/
This commit is contained in:
parent
7a56bad781
commit
0205d7e6b6
@ -11,9 +11,11 @@ var Updater = React.createClass({
|
|||||||
},
|
},
|
||||||
checkForUpdates () {
|
checkForUpdates () {
|
||||||
var v = window.location.pathname
|
var v = window.location.pathname
|
||||||
var gateway = /^\/ip[fn]s\/(?:Qm[1-9A-HJ-NP-Za-km-z]{44}|[^.]+\.[^.]+)/.test(
|
var gateway = /^\/ipns\/(?:Qm[1-9A-HJ-NP-Za-km-z]{44}|[^.]+\.[^.]+)/.test(
|
||||||
window.location.pathname
|
window.location.pathname
|
||||||
)
|
) || /^\/ipfs\/Qm[1-9A-HJ-NP-Za-km-z]{44}/.test(
|
||||||
|
window.location.pathname
|
||||||
|
);
|
||||||
if (v !== '/ipns/boards.ydns.eu/' || !gateway) {
|
if (v !== '/ipns/boards.ydns.eu/' || !gateway) {
|
||||||
this.setState({ update: true })
|
this.setState({ update: true })
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user