diff --git a/webapp/components/navbar.jsx b/webapp/components/navbar.jsx index b0e1e2a..0e1afdb 100644 --- a/webapp/components/navbar.jsx +++ b/webapp/components/navbar.jsx @@ -11,7 +11,11 @@ var Updater = React.createClass({ }, checkForUpdates () { var v = window.location.pathname - var gateway = window.location.pathname.indexOf('/ipfs/') === 0 || window.location.pathname.indexOf('/ipns/') === 0 + var gateway = /^\/ipns\/(?:Qm[1-9A-HJ-NP-Za-km-z]{44}|[^.]+\.[^.]+)/.test( + window.location.pathname + ) || /^\/ipfs\/Qm[1-9A-HJ-NP-Za-km-z]{44}/.test( + window.location.pathname + ); if (v !== '/ipns/boards.ydns.eu/' || !gateway) { this.setState({ update: true }) }