From ed574562457235bc3134748469dcffc5e590a316 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 12 May 2020 12:23:34 +0100 Subject: [PATCH] prevent a bunch of CSS in iframe head on every render --- .../userInterface/AppPreview/CurrentItemPreview.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte b/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte index 5e5e82ad90..02250a0fe1 100644 --- a/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte +++ b/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte @@ -25,6 +25,7 @@ ) $: hasComponent = !!$store.currentPreviewItem $: { + style = "" // Apply the CSS from the currently selected page and its screens const currentPage = $store.pages[$store.currentPageName] styles += currentPage._css