fix: meta tag injector uses property, not name (#7431)
This commit is contained in:
parent
932c4482d2
commit
fd24cb890a
@ -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 />
|
||||
|
Loading…
Reference in New Issue
Block a user