1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00

Remove unused client event for iframe-loaded

This commit is contained in:
Andrew Kingston 2021-11-16 13:15:31 +00:00
parent 4e4e07d1f2
commit f14e6d8e22
2 changed files with 4 additions and 2 deletions

View file

@ -36,7 +36,6 @@
// Messages that can be sent from the iframe preview to the builder
// Budibase events are and initalisation events
const MessageTypes = {
IFRAME_LOADED: "iframe-loaded",
READY: "ready",
ERROR: "error",
BUDIBASE: "type",
@ -157,6 +156,10 @@
const handleBudibaseEvent = event => {
const { type, data } = event.data || event.detail
if (!type) {
return
}
if (type === "select-component" && data.id) {
store.actions.components.select({ _id: data.id })
} else if (type === "update-prop") {

View file

@ -84,7 +84,6 @@ export default `
if (window.loadBudibase) {
window.loadBudibase()
document.documentElement.classList.add("loaded")
window.parent.postMessage({ type: "iframe-loaded" })
} else {
throw "The client library couldn't be loaded"
}