From b59be6759c2f25d699db2ff36a2b125d82c8db2c Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 1 Dec 2023 21:16:37 +0000 Subject: [PATCH] [ci] format --- .../astro/src/runtime/client/dev-overlay/entrypoint.ts | 2 +- packages/astro/src/runtime/client/dev-overlay/overlay.ts | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/runtime/client/dev-overlay/entrypoint.ts b/packages/astro/src/runtime/client/dev-overlay/entrypoint.ts index 119da70316..2124c21e07 100644 --- a/packages/astro/src/runtime/client/dev-overlay/entrypoint.ts +++ b/packages/astro/src/runtime/client/dev-overlay/entrypoint.ts @@ -46,7 +46,7 @@ document.addEventListener('DOMContentLoaded', async () => { customElements.define('astro-dev-toolbar-icon', DevOverlayIcon); // Add deprecated names - const deprecated = (Parent: any) => class extends Parent{}; + const deprecated = (Parent: any) => class extends Parent {}; customElements.define('astro-dev-overlay', deprecated(AstroDevOverlay)); customElements.define('astro-dev-overlay-window', deprecated(DevOverlayWindow)); customElements.define('astro-dev-overlay-plugin-canvas', deprecated(DevOverlayCanvas)); diff --git a/packages/astro/src/runtime/client/dev-overlay/overlay.ts b/packages/astro/src/runtime/client/dev-overlay/overlay.ts index 7cd92d160a..2def988020 100644 --- a/packages/astro/src/runtime/client/dev-overlay/overlay.ts +++ b/packages/astro/src/runtime/client/dev-overlay/overlay.ts @@ -467,8 +467,8 @@ export class AstroDevOverlay extends HTMLElement { [ 'app-toggled', // Deprecated - 'plugin-toggled' - ].forEach(eventName => { + 'plugin-toggled', + ].forEach((eventName) => { plugin.eventTarget.dispatchEvent( new CustomEvent(eventName, { detail: { @@ -481,7 +481,9 @@ export class AstroDevOverlay extends HTMLElement { if (import.meta.hot) { import.meta.hot.send(`${WS_EVENT_NAME}:${plugin.id}:toggled`, { state: plugin.active }); - import.meta.hot.send(`${WS_EVENT_NAME_DEPRECATED}:${plugin.id}:toggled`, { state: plugin.active }); + import.meta.hot.send(`${WS_EVENT_NAME_DEPRECATED}:${plugin.id}:toggled`, { + state: plugin.active, + }); } return true;