mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-28 06:17:46 +01:00
Use ternary over let
+if
This commit is contained in:
parent
686a93f244
commit
c048e54e0a
1 changed files with 1 additions and 4 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue