Skip to content

Commit

Permalink
demo/index.html: Avoid es6 string template
Browse files Browse the repository at this point in the history
  • Loading branch information
xqq committed Jul 6, 2017
1 parent e5150ab commit a6e1832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@

var logcatbox = document.getElementsByName('logcatbox')[0];
flvjs.LoggingControl.addLogListener(function(type, str) {
logcatbox.value = logcatbox.value + `${str}\n`;
logcatbox.value = logcatbox.value + str + '\n';
logcatbox.scrollTop = logcatbox.scrollHeight;
});

Expand Down

3 comments on commit a6e1832

@Debiancc
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using es6's string template is the right way

@xqq
Copy link
Contributor Author

@xqq xqq commented on a6e1832 Jul 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to support IE11

@Debiancc
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow it's just an example.
Recommended es6 standard is better than supported shit IE.

Please sign in to comment.