diff options
Diffstat (limited to 'frontend')
| -rwxr-xr-x | frontend/static/js/sj_compiled.js | 2 | ||||
| -rw-r--r-- | frontend/static/js/src/chat.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/frontend/static/js/sj_compiled.js b/frontend/static/js/sj_compiled.js index f47f150..76421f7 100755 --- a/frontend/static/js/sj_compiled.js +++ b/frontend/static/js/sj_compiled.js @@ -2548,7 +2548,7 @@ var Chat = txt = word s += '<a href="'+word+'" class="ytlink" id="'+ytid+'" target="_parent">'+txt+'</a> ' } - else if (word.indexOf("youtu.be") !== -1) + else if (word.replace("https", "http").indexOf("youtu.be") !== -1) { var ytid = "youtube_"+word.substr(16,11) var txt diff --git a/frontend/static/js/src/chat.js b/frontend/static/js/src/chat.js index 689dad6..c0b04be 100644 --- a/frontend/static/js/src/chat.js +++ b/frontend/static/js/src/chat.js @@ -50,7 +50,7 @@ var Chat = txt = word s += '<a href="'+word+'" class="ytlink" id="'+ytid+'" target="_parent">'+txt+'</a> ' } - else if (word.indexOf("youtu.be") !== -1) + else if (word.replace("https", "http").indexOf("youtu.be") !== -1) { var ytid = "youtube_"+word.substr(16,11) var txt |
