aboutsummaryrefslogtreecommitdiff
path: root/src/component/VideoAuto.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/component/VideoAuto.astro')
-rw-r--r--src/component/VideoAuto.astro6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/component/VideoAuto.astro b/src/component/VideoAuto.astro
index 38282f6..ddfe1c8 100644
--- a/src/component/VideoAuto.astro
+++ b/src/component/VideoAuto.astro
@@ -7,10 +7,10 @@ const { src } = Astro.props;
</video>
<script>
- window.addEventListener('load', () => {
- document.querySelectorAll('video').forEach(video => {
+ window.addEventListener("load", () => {
+ document.querySelectorAll("video").forEach((video) => {
if (window.screen.width < 1000) return;
video.autoplay = true;
});
- })
+ });
</script>