1
0
Fork 0
mirror of synced 2024-08-26 23:42:06 +12:00

Remove uncecessary calls to loadBudibase when registering a plugin at runtime

This commit is contained in:
Andrew Kingston 2022-08-12 14:34:44 +01:00
parent 10440803fe
commit ceb3eb78e5

View file

@ -40,17 +40,17 @@ const loadBudibase = () => {
devToolsStore.actions.setEnabled(enableDevTools)
// Register any custom components
window.registerCustomComponent = plugin => {
componentStore.actions.registerCustomComponent(plugin)
console.log("registered!")
loadBudibase()
}
if (window["##BUDIBASE_CUSTOM_COMPONENTS##"]) {
window["##BUDIBASE_CUSTOM_COMPONENTS##"].forEach(component => {
componentStore.actions.registerCustomComponent(component)
})
}
// Make a callback available for custom component bundles to register
// themselves at runtime
window.registerCustomComponent =
componentStore.actions.registerCustomComponent
// Create app if one hasn't been created yet
if (!app) {
app = new ClientApp({