Skip to content

Commit

Permalink
refactor: remove hash router
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui committed Apr 24, 2022
1 parent b3c4d01 commit 163d431
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ export function injectPageInspectorDefault<T extends string>(
return function injectPageInspector(signal: AbortSignal) {
const dom = document.body.appendChild(document.createElement('div')).attachShadow({ mode: 'closed' })

createReactRootShadowed(dom, { signal, key: 'page-inspector' }).render(
<HashRouter>
<PageInspectorDefault />
</HashRouter>,
)
createReactRootShadowed(dom, { signal, key: 'page-inspector' }).render(<PageInspectorDefault />)
}
}

0 comments on commit 163d431

Please sign in to comment.