0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

Adds missing export (#11501)

This commit is contained in:
Martin Trapp 2024-07-19 08:57:30 +02:00 committed by GitHub
parent 745ce44dd3
commit 4db78ae046
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Adds the missing export for accessing the `getFallback()` function of the client site router.

View file

@ -132,7 +132,7 @@ async function fetchHTML(
} }
} }
function getFallback(): Fallback { export function getFallback(): Fallback {
const el = document.querySelector('[name="astro-view-transitions-fallback"]'); const el = document.querySelector('[name="astro-view-transitions-fallback"]');
if (el) { if (el) {
return el.getAttribute('content') as Fallback; return el.getAttribute('content') as Fallback;