mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #3438 from techAPJ/patch-2
FIX: show youtube URL if title is undefined
This commit is contained in:
commit
f20f9d76a5
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@
|
||||||
innerHtml.push('<div class="html5-title">');
|
innerHtml.push('<div class="html5-title">');
|
||||||
innerHtml.push('<div class="html5-title-text-wrapper">');
|
innerHtml.push('<div class="html5-title-text-wrapper">');
|
||||||
innerHtml.push('<a class="html5-title-text" target="_blank" tabindex="3100" href="https://www.youtube.com/watch?v=', id, '">');
|
innerHtml.push('<a class="html5-title-text" target="_blank" tabindex="3100" href="https://www.youtube.com/watch?v=', id, '">');
|
||||||
if (title === null || title === '') {
|
if (title === undefined || title === null || title === '') {
|
||||||
innerHtml.push('https://www.youtube.com/watch?v=' + id);
|
innerHtml.push('https://www.youtube.com/watch?v=' + id);
|
||||||
} else {
|
} else {
|
||||||
innerHtml.push(title);
|
innerHtml.push(title);
|
||||||
|
|
Loading…
Reference in a new issue