Commit fe8f6433 authored by Michael Henretty's avatar Michael Henretty Committed by GitHub
Browse files

Revert "Only load audio src in ListenBox if it's defined (#442)" (#459)

This reverts commit d31de940.
parent ffd7ba80
...@@ -167,9 +167,7 @@ export default class ListenBox extends Component<Props, State> { ...@@ -167,9 +167,7 @@ export default class ListenBox extends Component<Props, State> {
</div> </div>
<audio <audio
className="audio-box" className="audio-box"
// Only include the src attribute if the source is defined src={this.props.src}
// (empty src attributes are invalid)
{...this.props.src && { src: this.props.src }}
preload="auto" preload="auto"
onLoadStart={this.onLoadStart} onLoadStart={this.onLoadStart}
onCanPlayThrough={this.onCanPlayThrough} onCanPlayThrough={this.onCanPlayThrough}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment