Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LINAGORA
L
LGS
Labs
voice-web
Commits
788d5b80
Commit
788d5b80
authored
Sep 28, 2017
by
Michael Henretty
Committed by
GitHub
Sep 28, 2017
Browse files
Revert "Revert "Only load audio src in ListenBox if it's defined (#442)" (#459)" (#462)
This reverts commit
fe8f6433
.
parent
fe8f6433
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
web/src/lib/components/listen-box.tsx
web/src/lib/components/listen-box.tsx
+3
-1
No files found.
web/src/lib/components/listen-box.tsx
View file @
788d5b80
...
...
@@ -167,7 +167,9 @@ export default class ListenBox extends Component<Props, State> {
</
div
>
<
audio
className
=
"audio-box"
src
=
{
this
.
props
.
src
}
// Only include the src attribute if the source is defined
// (empty src attributes are invalid)
{
...
this
.
props
.
src
&&
{
src
:
this
.
props
.
src
}
}
preload
=
"auto"
onLoadStart
=
{
this
.
onLoadStart
}
onCanPlayThrough
=
{
this
.
onCanPlayThrough
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment