Merge pull request #1720 from webtorrent/type-issues

Fix a few type errors
This commit is contained in:
Julen Garcia Leunda
2019-10-18 11:26:25 +02:00
committed by GitHub
9 changed files with 10 additions and 15 deletions

View File

@@ -114,9 +114,9 @@ function renderMedia (state) {
trackTags.push(
<track
key={i}
default={isSelected ? 'default' : ''}
default={isSelected}
label={track.label}
type='subtitles'
kind='subtitles'
src={track.buffer}
/>
)
@@ -546,7 +546,7 @@ function renderPlayerControls (state) {
<div
key='scrub-bar'
className='scrub-bar'
draggable='true'
draggable
onDragStart={handleDragStart}
onClick={handleScrub}
onDrag={handleScrub}