await saveFile transaction
This commit is contained in:
parent
c5ef4c8ab2
commit
cd83993ce2
@ -113,10 +113,12 @@ class BlobStore {
|
||||
}
|
||||
|
||||
async saveFile(name, blob) {
|
||||
this.db.transaction(["files"], "readwrite").objectStore("files").add({
|
||||
name: name,
|
||||
blob: blob,
|
||||
});
|
||||
await this._wrapReq(
|
||||
this.db.transaction(["files"], "readwrite").objectStore("files").add({
|
||||
name: name,
|
||||
blob: blob,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
async loadFile(name) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user