Skip to content

Commit

Permalink
fix: delay from faucet transaction hash query
Browse files Browse the repository at this point in the history
  • Loading branch information
wu committed Jul 4, 2019
1 parent c0d192a commit 28fb0db
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ if (search) {
var chain = chainMatchArray[1]
if (chain.indexOf(defaultNetwork.url) > -1) {
setSelectNetwork(defaultNetwork)
window.location.href =
var pathname = window.location.pathname
var hash = window.location.hash
setTimeout(()=>{
window.location.href =
window.location.protocol +
'//' +
window.location.host +
window.location.pathname +
window.location.hash
pathname +
hash
},4000)
}
}
}
Expand Down

0 comments on commit 28fb0db

Please sign in to comment.