mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Replace css text with archived assets links
This commit is contained in:
parent
13467128e5
commit
518c1599c3
8 changed files with 177 additions and 65 deletions
|
@ -1,4 +1,5 @@
|
|||
var RSVP = require('rsvp');
|
||||
var URI = require('urijs');
|
||||
var core = require('./core');
|
||||
var EpubCFI = require('./epubcfi');
|
||||
var Hook = require('./hook');
|
||||
|
@ -37,7 +38,7 @@ Section.prototype.load = function(_request){
|
|||
request(this.url)
|
||||
.then(function(xml){
|
||||
var base;
|
||||
var directory = core.folder(this.url);
|
||||
var directory = URI(this.url).directory();
|
||||
|
||||
this.document = xml;
|
||||
this.contents = xml.documentElement;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue