mirror of
https://github.com/tornadocash/tornado-classic-ui
synced 2024-02-02 15:04:09 +01:00
fix: detect ipfs
This commit is contained in:
parent
d36b1a9866
commit
756b544dee
@ -5,7 +5,7 @@ export default ({ store, isHMR, app }, inject) => {
|
|||||||
function main() {
|
function main() {
|
||||||
const whiteListedDomains = ['localhost:3000', 'tornadocash.eth.link', 'tornadocash.eth.limo']
|
const whiteListedDomains = ['localhost:3000', 'tornadocash.eth.link', 'tornadocash.eth.limo']
|
||||||
|
|
||||||
const NETLIFY_REGEXP = /https:\/\/deploy-preview-(\d+)--tornadocash\.netlify\.app/
|
const NETLIFY_REGEXP = /deploy-preview-(\d+)--tornadocash\.netlify\.app/
|
||||||
|
|
||||||
if (NETLIFY_REGEXP.test(window.location.host)) {
|
if (NETLIFY_REGEXP.test(window.location.host)) {
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user