mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
a domain name (at least two dot-separated parts) might also appear
This commit is contained in:
parent
ce78207546
commit
7a56bad781
@ -11,7 +11,7 @@ var Updater = React.createClass({
|
||||
},
|
||||
checkForUpdates () {
|
||||
var v = window.location.pathname
|
||||
var gateway = /^\/ip[fn]s\/Qm[1-9A-HJ-NP-Za-km-z]{44}/.test(
|
||||
var gateway = /^\/ip[fn]s\/(?:Qm[1-9A-HJ-NP-Za-km-z]{44}|[^.]+\.[^.]+)/.test(
|
||||
window.location.pathname
|
||||
)
|
||||
if (v !== '/ipns/boards.ydns.eu/' || !gateway) {
|
||||
|
Loading…
Reference in New Issue
Block a user