full site update
This commit is contained in:
5
node_modules/astro/dist/transitions/events.js
generated
vendored
5
node_modules/astro/dist/transitions/events.js
generated
vendored
@@ -115,9 +115,12 @@ async function doPreparation(from, to, direction, navigationType, sourceElement,
|
||||
}
|
||||
return event;
|
||||
}
|
||||
function doSwap(afterPreparation, viewTransition) {
|
||||
async function doSwap(afterPreparation, viewTransition, afterDispatch) {
|
||||
const event = new TransitionBeforeSwapEvent(afterPreparation, viewTransition);
|
||||
document.dispatchEvent(event);
|
||||
if (afterDispatch) {
|
||||
await afterDispatch();
|
||||
}
|
||||
event.swap();
|
||||
return event;
|
||||
}
|
||||
|
Reference in New Issue
Block a user