aboutsummaryrefslogtreecommitdiffstats
path: root/library/controllers
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-03-24 05:22:05 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-03-24 05:22:05 +0800
commit412cc2394a89a3ba1c0ca82cecf03c29254b7381 (patch)
treed239ada79184784fd46c645564902506ccaa90c4 /library/controllers
parent45ab81fb45ec1043d617f66c308e2e7911c8e0ad (diff)
downloadtangerine-wallet-browser-412cc2394a89a3ba1c0ca82cecf03c29254b7381.tar.gz
tangerine-wallet-browser-412cc2394a89a3ba1c0ca82cecf03c29254b7381.tar.zst
tangerine-wallet-browser-412cc2394a89a3ba1c0ca82cecf03c29254b7381.zip
Get mascara to send a transaction in the ui
Diffstat (limited to 'library/controllers')
-rw-r--r--library/controllers/index-db-controller.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/library/controllers/index-db-controller.js b/library/controllers/index-db-controller.js
index 3373de113..bf840b98a 100644
--- a/library/controllers/index-db-controller.js
+++ b/library/controllers/index-db-controller.js
@@ -58,21 +58,17 @@ module.exports = class IndexDbController extends EventEmitter {
})
}
- put (key, store) {
- return this.requestObjectStore(key, 'readwrite')
+ put (state) {
+ return this.requestObjectStore('dataStore', 'readwrite')
.then((dataObject)=> {
- const putRequest = dataObject.put(store)
+ const putRequest = dataObject.put(state, 'dataStore')
putRequest.onsuccess = (event) => Promise.resolve(event.currentTarget.result)
putRequest.onerror = (event) => Promise.reject(event)
})
}
- update (key, value) {
-
- }
-
migrate () {
- this.db.createObjectStore(this.name)
+ this.db.createObjectStore('dataStore')
}
_add (key, objStore, cb = logger) {