Browse Source

Мелкая поправка

Book Pauk 6 years ago
parent
commit
0d61f5523a
1 changed files with 5 additions and 4 deletions
  1. 5 4
      client/components/Reader/share/bookManager.js

+ 5 - 4
client/components/Reader/share/bookManager.js

@@ -5,10 +5,6 @@ import BookParser from './BookParser';
 
 const maxDataSize = 500*1024*1024;//chars, not bytes
 
-const bmCacheStore = localForage.createInstance({
-    name: 'bmCacheStore'
-});
-
 const bmMetaStore = localForage.createInstance({
     name: 'bmMetaStore'
 });
@@ -21,6 +17,11 @@ const bmRecentStore = localForage.createInstance({
     name: 'bmRecentStore'
 });
 
+//bmCacheStore нужен только для ускорения загрузки читалки
+const bmCacheStore = localForage.createInstance({
+    name: 'bmCacheStore'
+});
+
 class BookManager {
     async init(settings) {
         this.settings = settings;