diff options
author | Andrew Dolgov <[email protected]> | 2018-05-13 14:29:23 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-05-13 14:29:23 +0300 |
commit | a96443e152a1d09944839d21a3ebd709bd161cf7 (patch) | |
tree | b04c15dba8ffb072bd1863b8f6d17b9036ebef12 /js/read.js | |
parent | 52d5189c13c433a21a75b8a79f3b68e6ba593691 (diff) |
minor offline-related fixes
Diffstat (limited to 'js/read.js')
-rw-r--r-- | js/read.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -267,9 +267,12 @@ function apply_theme() { var baseUrl = window.location.href.match(/^.*\//)[0]; - if (!theme) theme = 'default'; + if (!theme) + theme = 'default'; + else + theme = theme.replace("/", ""); - var themeUrl = baseUrl + "/themes/" + theme + ".css"; + var themeUrl = baseUrl + "themes/" + theme + ".css"; $("#theme_css").attr("href", themeUrl); $(book.renderer.doc).find("#theme_css").attr('href', themeUrl); |