Petar Vasilev

Results 7 comments of Petar Vasilev

I've looked at the `foliate` code to find out how you do it and have found the `dispatchLocation` which uses `rendition.currentLocation()` to but when I run the same code from...

Also, I've tried calling `book.locations.generate(1024);` and then get the total using `book.locations.total` but that returns `-1`.

So, now I can get the current location cfi but `locationFromCfi` returns `-1` because of this check: `if (this._locations.length === 0) { return -1; }`. Any idea how to populate...

@johnfactotum using that method I get `-1` for `book.locations.total` when the promise resolves, any ideas?

Also, doing `this.book.locations.generate(1024).then(function(locations) { console.log(locations); });` logs some kind of proxy which doesn't seem to have locations data on it.

@redko-o haven't figured it out yet : (