Commit fd24cb89 authored by Connor McEwen's avatar Connor McEwen Committed by GitHub

fix: meta tag injector uses property, not name (#7431)

parent 932c4482
......@@ -162,7 +162,7 @@ export default function App() {
return null
}
const blockedPaths = document.querySelector('meta[name="x:blocked-paths"]')?.getAttribute('content')?.split(',')
const blockedPaths = document.querySelector('meta[property="x:blocked-paths"]')?.getAttribute('content')?.split(',')
const shouldBlockPath = blockedPaths?.includes(pathname) ?? false
if (shouldBlockPath && pathname !== '/swap') {
return <Navigate to="/swap" replace />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment