summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-05-16 13:21:29 +0300
committerAndrew Dolgov <[email protected]>2018-05-16 13:21:29 +0300
commit9599d67bcd04762b94f596edb013eee299046c92 (patch)
tree61ef212952886d417dd75ad893d1035003ad2ac6 /read.html
parenta96443e152a1d09944839d21a3ebd709bd161cf7 (diff)
use inline resource loading for theme content
Diffstat (limited to 'read.html')
-rw-r--r--read.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/read.html b/read.html
index d68d58b..541e28a 100644
--- a/read.html
+++ b/read.html
@@ -380,9 +380,11 @@
else
theme = theme.replace("/", "");
- $(book.renderer.doc.head)
- .append($("<link rel='stylesheet' id='theme_css' type='text/css'>")
- .attr('href', baseUrl + 'themes/' + theme + '.css'));
+ window.parent.$.get(baseUrl + 'themes/' + theme + '.css', function(data) {
+ $(book.renderer.doc.head)
+ .append($("<style type='text/css' id='theme_css' type='text/css'>")
+ .html(data));
+ });
if (callback) callback();
});