diff options
author | Andrew Dolgov <[email protected]> | 2021-04-13 11:21:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-04-13 11:21:36 +0300 |
commit | b57adffcaeff9488d1a15eeaea5f54583f9396ef (patch) | |
tree | f067a92e01df5214759fe626ae054fbdc33be3be /js/reader.js | |
parent | fc79ba314eca4748ede798ea628489ce91b13177 (diff) |
hide caecilia if ttf is not available
Diffstat (limited to 'js/reader.js')
-rw-r--r-- | js/reader.js | 3 |
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'; |