foliate-js
foliate-js copied to clipboard
Is loading from memory supported?
I read an epub from local storage and passed a file object in. The default reader shows the contents of the book and you can navigate around, but the pages are blank.
const file = new File([data], 'book.epub', { type: 'application/epub+zip' });
reader.open(file)
Is there a proper way to do this?
If it shows the contents that means the book is successfully loaded. There could be any number of reasons why the pages are blank. Or do you mean that the pages are blank only when you load the file in this specific way?