소스 검색

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

Book Pauk 6 년 전
부모
커밋
0d61f5523a
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  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;