fix: manhwa scroll unloading pages
This commit is contained in:
@@ -166,7 +166,9 @@ export class ReaderComponent implements OnInit, OnDestroy {
|
||||
|
||||
private clearCache(index: number) {
|
||||
for (let i = 0; i <= index; i++) {
|
||||
const imgUrl = this.cachedPages.get(i)!.imageUrl;
|
||||
this.cachedPages.get(i)!.imageUrl = "";
|
||||
URL.revokeObjectURL(imgUrl);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user