updated ui extensions api to allow top-level await calls

This commit is contained in:
Gani Georgiev
2026-05-10 14:36:09 +03:00
parent 1b5ea9a1fa
commit 81a5672498
6 changed files with 11 additions and 9 deletions
+3 -4
View File
@@ -134,8 +134,8 @@ watch(
);
// load extensions
let extensionsScript = t.script({
type: "module",
document.body.appendChild(t.script({
type: "module", // allow top-level await
src: app.pb.buildURL("/_/extensions.js"),
onload: () => {
app.store._ready = true;
@@ -144,5 +144,4 @@ let extensionsScript = t.script({
console.warn("Failed to load extensions:", err);
app.store._ready = true;
},
});
document.body.appendChild(extensionsScript);
}));