rschroll / efm

Epub for Monocle — A pure javascript implementation of the book data interface for Epub2 and Epub3
http://rschroll.github.com/efm
44 stars 15 forks source link

EFM - Epub for Monocle is not working in IE #10

Open yogeshwon opened 8 years ago

yogeshwon commented 8 years ago

error like Unable to get property 'getData' of undefined or null reference

So can you please suggest me how to read .epub file using EFM - Epub for Monocle.It is very imaportant for me Unable to get property 'split' of undefined or null reference line 52, col 5 function joinPaths(path1, path2) { var path = path1.split('/').concat(path2.split('/')) Unable to get property 'getData' of undefined or null reference line 255 files[id].getData(new zip.TextWriter(), function (data) { callback(data); });

Akahadaka commented 8 years ago

@yogeshwon, I got stuck with similar issues. It seems that the newer versions of zip-js are not compatible. I have not bothered to find out why.

My solution was to start with the example gh-pages branch given. The js/zip.js included seems to work fine.

Try the example as is. If that works, then try replacing the zip-js files with the older versions from the example.