Merge pull request #2097 from Wevah/mac-release

mac-release: Strip inline max-height and max-width from elements
This commit is contained in:
Maurice Parker
2020-05-20 17:52:45 -05:00
committed by GitHub

View File

@@ -344,7 +344,7 @@ private extension ArticleRenderer {
},
stripStyles: function() {
document.getElementsByTagName("body")[0].querySelectorAll("style, link[rel=stylesheet]").forEach(element => element.remove());
document.getElementsByTagName("body")[0].querySelectorAll("[style]").forEach(element => stripStylesFromElement(element, ["color", "background", "font"]));
document.getElementsByTagName("body")[0].querySelectorAll("[style]").forEach(element => stripStylesFromElement(element, ["color", "background", "font", "max-width", "max-height"]));
},
linkHover: function() {
var anchors = document.getElementsByTagName("a");