Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed Dec 23, 2024
1 parent 06c7ff8 commit d46370e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ShellVideo/ShellVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,11 @@ function ShellVideo(options) {
ipc.send('mpv-set-prop', ['pause', false]);
ipc.send('mpv-set-prop', ['speed', props.speed]);
if (props.aid) {
if (typeof props.aid === 'string' && props.aid.startsWith('EMBEDDED_'))
if (typeof props.aid === 'string' && props.aid.startsWith('EMBEDDED_')) {
ipc.send('mpv-set-prop', ['aid', props.aid.slice('EMBEDDED_'.length)]);
else
} else {
ipc.send('mpv-set-prop', ['aid', props.aid]);
}
}
ipc.send('mpv-set-prop', ['mute', 'no']);

Expand Down

0 comments on commit d46370e

Please sign in to comment.