summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--packages/astro/components/ViewTransitions.astro2
-rw-r--r--packages/astro/e2e/view-transitions.test.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/components/ViewTransitions.astro b/packages/astro/components/ViewTransitions.astro
index 1e59d89d9..39b9996ce 100644
--- a/packages/astro/components/ViewTransitions.astro
+++ b/packages/astro/components/ViewTransitions.astro
@@ -175,7 +175,7 @@ const { fallback = 'animate' } = Astro.props as Props;
);
// Replace scripts in both the head and body.
- for(const s1 of document.scripts) {
+ for (const s1 of document.scripts) {
for (const s2 of newDocument.scripts) {
if (
// Inline
diff --git a/packages/astro/e2e/view-transitions.test.js b/packages/astro/e2e/view-transitions.test.js
index 0ff18a150..d777d9b2f 100644
--- a/packages/astro/e2e/view-transitions.test.js
+++ b/packages/astro/e2e/view-transitions.test.js
@@ -682,7 +682,7 @@ test.describe('View Transitions', () => {
test('body inline scripts do not re-execute on navigation', async ({ page, astro }) => {
const errors = [];
- page.addListener('pageerror', err => {
+ page.addListener('pageerror', (err) => {
errors.push(err);
});