File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ type CustomPlayEventDetail = { uniqueId: string };
1818const 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 */
2424export 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 (
You can’t perform that action at this time.
0 commit comments