summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <Princesseuh@users.noreply.github.com> 2023-12-05 11:03:42 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-12-05 11:03:42 +0000
commit829a6fadfaa3ed6cd0ef8ecb73406a9f3c622163 (patch)
tree4600a291b33027b6a49553390f3e6b384c954d95
parent9807582b690acf1570def9a7ca7dfbb059eab6bb (diff)
downloadastro-829a6fadfaa3ed6cd0ef8ecb73406a9f3c622163.tar.gz
astro-829a6fadfaa3ed6cd0ef8ecb73406a9f3c622163.tar.zst
astro-829a6fadfaa3ed6cd0ef8ecb73406a9f3c622163.zip
[ci] format
-rw-r--r--packages/astro/src/runtime/client/dev-overlay/overlay.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/astro/src/runtime/client/dev-overlay/overlay.ts b/packages/astro/src/runtime/client/dev-overlay/overlay.ts
index 33a78ed61..e1240f8b4 100644
--- a/packages/astro/src/runtime/client/dev-overlay/overlay.ts
+++ b/packages/astro/src/runtime/client/dev-overlay/overlay.ts
@@ -279,9 +279,12 @@ export class AstroDevOverlay extends HTMLElement {
// Init plugin lazily, so that the page can load faster.
// Fallback to setTimeout for Safari (sad!)
if ('requestIdleCallback' in window) {
- window.requestIdleCallback(async () => {
- this.plugins.map((plugin) => this.initPlugin(plugin));
- }, {timeout: 300});
+ window.requestIdleCallback(
+ async () => {
+ this.plugins.map((plugin) => this.initPlugin(plugin));
+ },
+ { timeout: 300 }
+ );
} else {
setTimeout(async () => {
this.plugins.map((plugin) => this.initPlugin(plugin));