summaryrefslogtreecommitdiff
path: root/js/reader.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-04-13 11:21:36 +0300
committerAndrew Dolgov <[email protected]>2021-04-13 11:21:36 +0300
commitb57adffcaeff9488d1a15eeaea5f54583f9396ef (patch)
treef067a92e01df5214759fe626ae054fbdc33be3be /js/reader.js
parentfc79ba314eca4748ede798ea628489ce91b13177 (diff)
hide caecilia if ttf is not available
Diffstat (limited to 'js/reader.js')
-rw-r--r--js/reader.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/reader.js b/js/reader.js
index d74b75a..1c226be 100644
--- a/js/reader.js
+++ b/js/reader.js
@@ -300,9 +300,10 @@ const Reader = {
$(contents.document.head)
.append($("<style type='text/css'>")
.text(fonts_css));
+ } else {
+ $(".font_family option[value='Caecilia']").hide();
}
-
return localforage.getItem("epube.theme").then(function(theme) {
if (!theme) theme = 'default';