1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Map over display function instead of displayed value.

Previously we were mapping over the displayed status boolean and
treating it like a promise when it wasn't one. I assume we meant to
instead call the display function.
This commit is contained in:
Fraser Mince 2020-02-11 15:34:31 -06:00
parent d75b47e05b
commit 0127e9e83f

View file

@ -283,7 +283,7 @@ class ContinuousViewManager extends DefaultViewManager {
} }
let promises = newViews.map((view) => { let promises = newViews.map((view) => {
return view.displayed; return view.display(this.request);
}); });
if(newViews.length){ if(newViews.length){