summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-08-22 14:41:22 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-08-22 14:41:22 +0000
commit0402eb0972a06b66f96987ff189767693924dd02 (patch)
treebf5ac21aadbdeb0f9fd3fb475a9c7c1cd3b521fd
parent5e82f6c245be332764fcd5a90be491a430655c87 (diff)
downloadastro-0402eb0972a06b66f96987ff189767693924dd02.tar.gz
astro-0402eb0972a06b66f96987ff189767693924dd02.tar.zst
astro-0402eb0972a06b66f96987ff189767693924dd02.zip
[ci] format
-rw-r--r--packages/astro/src/runtime/server/astro-island.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/astro/src/runtime/server/astro-island.ts b/packages/astro/src/runtime/server/astro-island.ts
index 07ea982d3..2e16a547a 100644
--- a/packages/astro/src/runtime/server/astro-island.ts
+++ b/packages/astro/src/runtime/server/astro-island.ts
@@ -62,7 +62,7 @@ declare const Astro: {
start() {
const opts = JSON.parse(this.getAttribute('opts')!) as Record<string, any>;
const directive = this.getAttribute('client') as directiveAstroKeys;
- if(Astro[directive] === undefined) {
+ if (Astro[directive] === undefined) {
window.addEventListener(`astro:${directive}`, () => this.start(), { once: true });
return;
}