Skip to content

Commit

Permalink
fix(complete): tweak poster img alt text
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Apr 9, 2020
1 parent f8389bd commit 6eeac87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vime-complete/src/plugins/Poster.svelte
@@ -1,8 +1,8 @@
<svelte:options accessors />

<img
{alt}
src={$currentPoster}
alt={$title || 'Media Poster'}
use:vIf={isEnabled}
use:vShow={isActive}
bind:this={el}
Expand Down Expand Up @@ -41,6 +41,7 @@
export const getEl = () => el;
$: alt = $title ? `Poster for ${title}` : 'Media Poster';
$: if (autopilot) isEnabled = !$useNativeControls && !!$currentPoster;
$: if (autopilot) isActive = !$playbackStarted;
</script>
Expand Down

0 comments on commit 6eeac87

Please sign in to comment.