summaryrefslogtreecommitdiff
path: root/js/read.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/read.js')
-rw-r--r--js/read.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/read.js b/js/read.js
index edbc2de..a2ce59d 100644
--- a/js/read.js
+++ b/js/read.js
@@ -265,14 +265,14 @@ function apply_theme() {
localforage.getItem("epube.theme").then(function(theme) {
console.log('theme', theme);
- var baseUrl = window.location.href.match(/^.*\//)[0];
+ var base_url = window.location.href.match(/^.*\//)[0];
if (!theme)
theme = 'default';
else
theme = theme.replace("/", "");
- var theme_url = baseUrl + "themes/" + theme + ".css";
+ var theme_url = base_url + "themes/" + theme + ".css";
$("#theme_css").attr("href", theme_url);