1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-11 21:15:44 +02:00

Safeguard video player to avoid showing overlay if the URL is null

This commit is contained in:
chylex 2019-01-28 17:43:53 +01:00
parent d2ed2b4a00
commit b17c6a5ac7

View File

@ -1198,6 +1198,8 @@
//
execSafe(function setupVideoPlayer(){
window.TDGF_playVideo = function(url, username){
return if !url;
$('<div id="td-video-player-overlay" class="ovl" style="display:block"></div>').on("click contextmenu", function(){
$TD.playVideo(null, null);
}).appendTo(app);