Commit aeb58bdc authored by Michael Henretty's avatar Michael Henretty

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

This reverts commit d31de940.
parent ffd7ba80
......@@ -167,9 +167,7 @@ export default class ListenBox extends Component<Props, State> {
</div>
<audio
className="audio-box"
// Only include the src attribute if the source is defined
// (empty src attributes are invalid)
{...this.props.src && { src: this.props.src }}
src={this.props.src}
preload="auto"
onLoadStart={this.onLoadStart}
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