Добавлен запрос persistent storage, увеличен размер кэша книг

This commit is contained in:
Book Pauk
2020-12-03 19:53:08 +07:00
parent acb083e429
commit 555154031e
2 changed files with 5 additions and 1 deletions

View File

@@ -128,6 +128,10 @@ class App extends Vue {
this.setAppTitle();
(async() => {
//запросим persistent storage
if (navigator.storage && navigator.storage.persist) {
navigator.storage.persist();
}
await this.routerReady();
this.redirectIfNeeded();
})();

View File

@@ -4,7 +4,7 @@ import _ from 'lodash';
import * as utils from '../../../share/utils';
import BookParser from './BookParser';
const maxDataSize = 300*1024*1024;//compressed bytes
const maxDataSize = 500*1024*1024;//compressed bytes
//локальный кэш метаданных книг, ограничение maxDataSize
const bmMetaStore = localForage.createInstance({