From 7b8abb376d62c730244590c2ab9f42157f84fdba Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 9 Nov 2021 12:24:18 +0100 Subject: [PATCH] formatting --- .../components/design/AppPreview/CurrentItemPreview.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/design/AppPreview/CurrentItemPreview.svelte b/packages/builder/src/components/design/AppPreview/CurrentItemPreview.svelte index d5c8230558..8759d63729 100644 --- a/packages/builder/src/components/design/AppPreview/CurrentItemPreview.svelte +++ b/packages/builder/src/components/design/AppPreview/CurrentItemPreview.svelte @@ -122,10 +122,10 @@ window.addEventListener("message", receiveMessage) } else { // Legacy - remove in later versions of BB - iframe.contentWindow.addEventListener("ready", () => { + iframe.contentWindow.addEventListener("ready", () => { receiveMessage({ data: { type: MessageTypes.READY }}) }, { once: true }) - iframe.contentWindow.addEventListener("error", event => { + iframe.contentWindow.addEventListener("error", event => { receiveMessage({ data: { type: MessageTypes.ERROR, error: event.detail }}) }, { once: true }) // Add listener for events sent by client library in preview @@ -138,7 +138,7 @@ onDestroy(() => { if (iframe.contentWindow) { if ($store.clientFeatures.messagePassing) { - window.removeEventListener("message", receiveMessage) // + window.removeEventListener("message", receiveMessage) // } else { // Legacy - remove in later versions of BB iframe.contentWindow.removeEventListener("bb-event", handleBudibaseEvent)