Skip to content

Commit c742e7f

Browse files
fix(runtime): check for existing overlay element before injecting one (#563)
1 parent de6ff73 commit c742e7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/runtime/src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export function inject({
1515
base: string
1616
overlayConfig: Record<string, any>
1717
}) {
18+
if (document.querySelector('vite-plugin-checker-error-overlay')) return
19+
1820
const overlayEle = new ShadowElement({
1921
base,
2022
overlayConfig,

0 commit comments

Comments
 (0)