From cd83993ce28b98fd748f22c91365e6518668a3ec Mon Sep 17 00:00:00 2001 From: turbocrime Date: Sat, 1 Mar 2025 16:30:14 -0800 Subject: [PATCH] await saveFile transaction --- static/js/web-install.js | 10 ++++++---- 1 file 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) {