mirror of
https://github.com/withastro/astro.git
synced 2025-03-24 23:21:57 -05:00
8 lines
161 B
JavaScript
8 lines
161 B
JavaScript
import listen from 'micromorph/spa';
|
|
|
|
export default () =>
|
|
listen({
|
|
afterDiff() {
|
|
window.dispatchEvent(new CustomEvent('astro:locationchange'));
|
|
},
|
|
});
|