Skip to content

Commit

Permalink
fix: use TALISMAN_WEB_APP_DOMAIN in paraverse protector instead of ha…
Browse files Browse the repository at this point in the history
…rd coded domain
  • Loading branch information
chidg committed Dec 11, 2024
1 parent c77a0e0 commit 2e86c08
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { checkHost } from "@polkadot/phishing"
import { Dexie } from "dexie"
import metamaskInitialData from "eth-phishing-detect/src/config.json"
import MetamaskDetector from "eth-phishing-detect/src/detector"
import { log } from "extension-shared"
import { log, TALISMAN_WEB_APP_DOMAIN } from "extension-shared"
import { decompressFromUTF16 } from "lz-string"

import { sentry } from "../../../config/sentry"
Expand All @@ -20,7 +20,10 @@ const COMMIT_PATH = "/commits/master"

const REFRESH_INTERVAL_MIN = 20

const DEFAULT_ALLOW = ["talisman.xyz", "app.talisman.xyz"]
const DEFAULT_ALLOW = [
TALISMAN_WEB_APP_DOMAIN, // app.talisman.xyz
TALISMAN_WEB_APP_DOMAIN.split(".").slice(1).join("."), // talisman.xyz
]

type HostList = { allow: string[]; deny: string[] }

Expand Down

0 comments on commit 2e86c08

Please sign in to comment.