mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
47604bd5b5
commit
b59be6759c
2 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue