diff options
author | Andrew Dolgov <[email protected]> | 2018-05-20 19:13:24 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-05-20 19:13:24 +0300 |
commit | c85f98198a09d4da999e671cd697d8fef1c16520 (patch) | |
tree | 2685af80e9d85acac8ee3a23ad1a0ea6303cf452 /js/read.js | |
parent | 164549af90e422fc39979abe69fb477f2ffcb95e (diff) |
use new resource loader for all iframe scripts and stylesheets
Diffstat (limited to 'js/read.js')
-rw-r--r-- | js/read.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |