Skip to content

Commit ee42f1d

Browse files
committed
typo
1 parent 2eec092 commit ee42f1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dotcom-rendering/src/components/LoopVideo.importable.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ type CustomPlayEventDetail = { uniqueId: string };
1818
const customPlayAudioEventName = 'looping-video:play-with-audio';
1919

2020
/**
21-
* Dispatches a custom play event so that other players listening
22-
* for this event will stop playing
21+
* Dispatches a custom play audio event so that other videos listening
22+
* for this event will be muted.
2323
*/
2424
export const dispatchCustomPlayAudioEvent = (uniqueId: string) => {
2525
document.dispatchEvent(
@@ -75,7 +75,7 @@ export const LoopVideo = ({
7575
* Setup.
7676
*
7777
* Register the users motion preferences.
78-
* Create event listeners to ensure we don't play audio from multiple loops
78+
* Creates an event listener to ensure we don't play audio from multiple loops
7979
*/
8080
useEffect(() => {
8181
const userPrefersReducedMotion = window.matchMedia(

0 commit comments

Comments
 (0)