Skip to content

Commit

Permalink
fix: browser warnings when inserting a file message from template
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Mar 24, 2024
1 parent b3a3dd8 commit 0712eda
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/messaging/messaging.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,15 @@
preload="none"
ref="media"
>
<!-- Hack: include an empty source attribute to prevent \
browser warnings when template is first parsed but \
dynamic attributes were not yet injected, even if we made \
sure not to insert this in the DOM if we do not know yet \
the file URL, the browser still complains, hence this \
'about:blank' default source URL. -->
<source
@error="onAudioMediaSourceError"
src="about:blank"
:src="file.url"
:type="file.type"
/>
Expand Down

0 comments on commit 0712eda

Please sign in to comment.