var React = require('react')
var Icon = require('icon.jsx')
var Link = require('react-router').Link
var Updater = React.createClass({
getInitialState () {
return {}
},
componentDidMount () {
this.checkForUpdates()
},
checkForUpdates () {
var v = window.location.pathname
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 })
}
},
render () {
if (this.state.update) {
return