updated ui extensions api to allow top-level await calls
This commit is contained in:
+3
-4
@@ -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);
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user