Поправил комментарий
This commit is contained in:
@@ -25,6 +25,7 @@ class BookManager {
|
|||||||
async init(settings) {
|
async init(settings) {
|
||||||
this.settings = settings;
|
this.settings = settings;
|
||||||
|
|
||||||
|
//bmCacheStore нужен только для ускорения загрузки читалки
|
||||||
this.booksCached = await bmCacheStore.getItem('books');
|
this.booksCached = await bmCacheStore.getItem('books');
|
||||||
if (!this.booksCached)
|
if (!this.booksCached)
|
||||||
this.booksCached = {};
|
this.booksCached = {};
|
||||||
@@ -47,9 +48,9 @@ class BookManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//долгая загрузка из хранилища
|
//долгая загрузка из хранилища,
|
||||||
//bmMetaStore и bmRecentStore в будущем можно будет убрать
|
//хранение в отдельных записях дает относительно
|
||||||
//bmCacheStore достаточно
|
//нормальное поведение при нескольких вкладках с читалкой в браузере
|
||||||
async loadMeta(immediate) {
|
async loadMeta(immediate) {
|
||||||
if (!immediate)
|
if (!immediate)
|
||||||
await utils.sleep(2000);
|
await utils.sleep(2000);
|
||||||
|
|||||||
Reference in New Issue
Block a user