Доделки загрузки книг

This commit is contained in:
Book Pauk
2019-02-03 23:23:59 +07:00
parent ce6f41dbe4
commit bc0b0d6e04
3 changed files with 13 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ class BookManager {
if (!meta.key)
meta.key = this.keyFromUrl(meta.url);
let book = this.books[meta.key];
return (book && book.parsed);
return !!(book && book.parsed);
}
async getBook(meta, callback) {