Use ternary over let+if

This commit is contained in:
Eliot Partridge 2024-05-05 17:28:29 -04:00
parent 686a93f244
commit c048e54e0a
No known key found for this signature in database

View file

@ -86,10 +86,7 @@ function pickAndResize(elem) {
clearEl(elem);
}
let muted = 'muted';
if (store.get('unmute_videos')) {
muted = '';
}
const muted = store.get('unmute_videos') ? '' : 'muted';
if (imageFormat === 'mp4') {
elem.classList.add('full-height');