summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/read.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/js/read.js b/js/read.js
index bc37f98..77570c7 100644
--- a/js/read.js
+++ b/js/read.js
@@ -180,12 +180,10 @@ function apply_styles() {
var lineHeight = res[2] ? res[2] + "%" : DEFAULT_LINE_HEIGHT + "%";
var themeName = res[3] ? res[3] : false;
- window.book.rendition.themes.default({
- html: {
- 'font-size': fontSize,
- 'font-family': fontFamily,
- 'line-height': lineHeight,
- }
+ $.each(window.book.rendition.getContents(), function(i, c) {
+ c.css("font-size", fontSize);
+ c.css("font-family", fontFamily);
+ c.css("line-height", lineHeight);
});
apply_theme();