0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Matthew Phillips 2023-12-01 21:16:37 +00:00 committed by astrobot-houston
parent 47604bd5b5
commit b59be6759c
2 changed files with 6 additions and 4 deletions

View file

@ -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;