1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-22 18:15:47 +02:00

Fix screenshot script modifying original elements and missing html classes

This commit is contained in:
chylex 2016-12-23 15:29:33 +01:00
parent cac6d1f889
commit 02e8dc3440

View File

@ -316,8 +316,14 @@
window.TDGF_triggerScreenshot = function(){
if (selectedTweet){
var realWidth = selectedTweet.width();
var realHeight = selectedTweet.height()-selectedTweet.find("footer").last().height();
selectedTweet = selectedTweet.clone();
selectedTweet.children().first().addClass($(document.documentElement).attr("class"));
selectedTweet.find("footer").last().remove();
$TD.screenshotTweet(selectedTweet.html(), selectedTweet.width(), selectedTweet.height());
$TD.screenshotTweet(selectedTweet.html(), realWidth, realHeight);
}
};
})();