Sfoglia il codice sorgente

Keep the options for indexedDB to its own namespace

Sunil Shrestha 7 anni fa
parent
commit
7b7ae236b5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/plugins/RestoreFiles/index.js

+ 1 - 1
src/plugins/RestoreFiles/index.js

@@ -27,7 +27,7 @@ module.exports = class RestoreFiles extends Plugin {
 
 
     // const Store = this.opts.serviceWorker ? ServiceWorkerStore : IndexedDBStore
     // const Store = this.opts.serviceWorker ? ServiceWorkerStore : IndexedDBStore
     this.ServiceWorkerStore = this.opts.serviceWorker ? new ServiceWorkerStore(core) : false
     this.ServiceWorkerStore = this.opts.serviceWorker ? new ServiceWorkerStore(core) : false
-    this.IndexedDBStore = new IndexedDBStore(core, this.opts)
+    this.IndexedDBStore = new IndexedDBStore(core, opts.indexedDB || {})
 
 
     this.saveFilesStateToLocalStorage = this.saveFilesStateToLocalStorage.bind(this)
     this.saveFilesStateToLocalStorage = this.saveFilesStateToLocalStorage.bind(this)
     this.loadFilesStateFromLocalStorage = this.loadFilesStateFromLocalStorage.bind(this)
     this.loadFilesStateFromLocalStorage = this.loadFilesStateFromLocalStorage.bind(this)