diff options
author | Andrew Dolgov <[email protected]> | 2021-08-24 14:37:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-08-24 14:37:09 +0300 |
commit | d3f276aa84c953e8c1a243312f68138e55f730a5 (patch) | |
tree | 7d453752183bb1b8fea3fdbbe7713a7cdeecfa8d /js | |
parent | 8f4fad21637d9ecc6350c30234a125fab4ad6c53 (diff) |
use revert instead of inherit when reverting element styles to default
Diffstat (limited to 'js')
-rw-r--r-- | js/reader.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/reader.js b/js/reader.js index 07c167e..03d5ff3 100644 --- a/js/reader.js +++ b/js/reader.js @@ -554,8 +554,8 @@ const Reader = { $(doc).find("a, p, span, em, i, strong, b, body, header, section, div, big, small") .attr("class", "") - .css("font-family", "inherit") - .css("font-size", "inherit") + .css("font-family", "revert") + .css("font-size", "revert") .css("color", "") .css("border", "none ! important") .css("background", "") @@ -564,7 +564,7 @@ const Reader = { // same as above except for allowed font-size $(doc).find("h1, h2, h3, h4, h5") .attr("class", "") - .css("font-family", "inherit") + .css("font-family", "revert") .css("color", "") .css("border", "none ! important") .css("background", "") |