summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-13 15:09:32 +0300
committerAndrew Dolgov <[email protected]>2020-09-13 15:09:32 +0300
commita90c91ca5534e5fa4427e95f90a41056a33b9564 (patch)
tree2a4e1d9855a9b9c01259d0bde1860ce26832e889 /js
parentd3da50c11bf1b9ab6b1868e0a727f5d3a5c07c10 (diff)
force-remove per-book CSS classes applied inside iframe
Diffstat (limited to 'js')
-rw-r--r--js/reader.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/reader.js b/js/reader.js
index ff7c3e3..64c3404 100644
--- a/js/reader.js
+++ b/js/reader.js
@@ -714,6 +714,10 @@ const Reader = {
$(c.document).find("p")
.filter((i, e) => { if ($(e).text().length >= MIN_LENGTH_TO_JUSTIFY) return e; })
.css("text-align", "justify");
+
+ /* embedded styles may conflict with our font sizes, etc */
+ $(c.document).find("p, span, em, strong, body")
+ .attr("class", "");
});
});