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