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:
parent
745ce44dd3
commit
4db78ae046
2 changed files with 6 additions and 1 deletions
5
.changeset/spotty-camels-joke.md
Normal file
5
.changeset/spotty-camels-joke.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Adds the missing export for accessing the `getFallback()` function of the client site router.
|
|
@ -132,7 +132,7 @@ async function fetchHTML(
|
|||
}
|
||||
}
|
||||
|
||||
function getFallback(): Fallback {
|
||||
export function getFallback(): Fallback {
|
||||
const el = document.querySelector('[name="astro-view-transitions-fallback"]');
|
||||
if (el) {
|
||||
return el.getAttribute('content') as Fallback;
|
||||
|
|
Loading…
Add table
Reference in a new issue