mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Parenthesize to avoid a misbehavior
This commit is contained in:
parent
83b122ab75
commit
a703175b3a
@ -56,7 +56,7 @@ const readerComponent = () => {
|
||||
}
|
||||
|
||||
// Preload Images
|
||||
this.preloadLookahead = +localStorage.getItem('preloadLookahead') ?? 3;
|
||||
this.preloadLookahead = +(localStorage.getItem('preloadLookahead') ?? 3);
|
||||
const limit = Math.min(page + this.preloadLookahead, this.items.length + 1);
|
||||
for (let idx = page + 1; idx <= limit; idx++) {
|
||||
this.preloadImage(this.items[idx - 1].url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user