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:
parent
d75b47e05b
commit
0127e9e83f
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue