Skip to content

Commit

Permalink
add optional chaining operator to get hash value for hoverplay (adobe…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruchika4 authored and vgoodric committed Feb 1, 2024
1 parent 7aee741 commit 5181825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/utils/decorate.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export function decorateIconStack(el) {
export function getVideoAttrs(hash) {
const isAutoplay = hash?.includes('autoplay');
const isAutoplayOnce = hash?.includes('autoplay1');
const playOnHover = hash.includes('hoverplay');
const playOnHover = hash?.includes('hoverplay');
if (isAutoplay && !isAutoplayOnce) {
return 'playsinline autoplay loop muted';
}
Expand Down

0 comments on commit 5181825

Please sign in to comment.