mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] format
This commit is contained in:
parent
ade9759cae
commit
03242c6c22
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ const { fallback = 'animate' } = Astro.props;
|
||||||
|
|
||||||
if (supportsViewTransitions || getFallback() !== 'none') {
|
if (supportsViewTransitions || getFallback() !== 'none') {
|
||||||
if (import.meta.env.DEV && window.matchMedia('(prefers-reduced-motion)').matches) {
|
if (import.meta.env.DEV && window.matchMedia('(prefers-reduced-motion)').matches) {
|
||||||
console.warn(`[transitions]: all view transition animations, including fallback animation, are disabled as this device has the prefer-reduced-motion setting enabled.`);
|
console.warn(
|
||||||
|
`[transitions]: all view transition animations, including fallback animation, are disabled as this device has the prefer-reduced-motion setting enabled.`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
document.addEventListener('click', (ev) => {
|
document.addEventListener('click', (ev) => {
|
||||||
let link = ev.target;
|
let link = ev.target;
|
||||||
|
|
Loading…
Add table
Reference in a new issue