diff options
| author | turbocrime <turbocrime@users.noreply.github.com> | 2025-03-01 16:30:14 -0800 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2025-03-02 08:24:53 -0500 |
| commit | cd83993ce28b98fd748f22c91365e6518668a3ec (patch) | |
| tree | 9e55912e3d9be25c032202191bc6c44a12334fa7 /static/js | |
| parent | c5ef4c8ab2fa546f697273ac96af77ccdf24984e (diff) | |
await saveFile transaction
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/web-install.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/static/js/web-install.js b/static/js/web-install.js index 9369ad40..1ba6bb22 100644 --- a/static/js/web-install.js +++ b/static/js/web-install.js @@ -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) { |
