futurepress / epub.js

Enhanced eBooks in the browser.
http://futurepress.org
Other
6.43k stars 1.11k forks source link

epub.js coverUrl() can not return blob cover url by using this method, i have fixed #894

Open vanilla-sky opened 5 years ago

vanilla-sky commented 5 years ago
 the post content code line:   this.urls.indexOf(path.replace('/OEBPS/', "")); 
    only  change this line,then return right coverurl

/**

christiaan commented 4 years ago

For me this did not work (or I did not understand your patch). I've created a PR https://github.com/futurepress/epub.js/pull/1056 to fix this. It also demonstrates the issue in a test to prevent regressions.