diff --git a/main.js b/main.js index 0fea7fc..b7acd1b 100644 --- a/main.js +++ b/main.js @@ -76,7 +76,7 @@ function setVideoListener(){ jQuery(".main-wrap").on('contextmenu', "video", function(e) { currentVideo.target = jQuery(event.target); - currentVideo.gifUrl = currentVideo.target.parent().data("image").replace("a.gif", ".gif"); + currentVideo.gifUrl = currentVideo.target.parent().data("image"); currentVideo.name = currentVideo.target.parents("article").find("h2").text().trim() + ".gif"; });