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:
parent
d2ed2b4a00
commit
b17c6a5ac7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user