diff --git a/packages/astro/src/runtime/client/dev-overlay/plugins/astro.ts b/packages/astro/src/runtime/client/dev-overlay/plugins/astro.ts index d3f0d03e67..3321b99534 100644 --- a/packages/astro/src/runtime/client/dev-overlay/plugins/astro.ts +++ b/packages/astro/src/runtime/client/dev-overlay/plugins/astro.ts @@ -35,7 +35,7 @@ export default { document.addEventListener('astro:after-swap', createCanvas); - eventTarget.addEventListener('plugin-toggled', async (event) => { + eventTarget.addEventListener('app-toggled', async (event) => { resetDebugButton(); if (!(event instanceof CustomEvent)) return; diff --git a/packages/astro/src/runtime/client/dev-overlay/plugins/audit/index.ts b/packages/astro/src/runtime/client/dev-overlay/plugins/audit/index.ts index 175fe0ab66..82f348a95a 100644 --- a/packages/astro/src/runtime/client/dev-overlay/plugins/audit/index.ts +++ b/packages/astro/src/runtime/client/dev-overlay/plugins/audit/index.ts @@ -69,7 +69,7 @@ export default { }) ); } - eventTarget.addEventListener('plugin-toggled', (event: any) => { + eventTarget.addEventListener('app-toggled', (event: any) => { if (event.detail.state === true) { document.addEventListener('click', onPageClick, true); } else { diff --git a/packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts b/packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts index edc038df7a..4e7d5d8ed0 100644 --- a/packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts +++ b/packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts @@ -39,7 +39,7 @@ export default { ); } - eventTarget.addEventListener('plugin-toggled', (event: any) => { + eventTarget.addEventListener('app-toggled', (event: any) => { if (event.detail.state === true) { document.addEventListener('click', onPageClick, true); } else {