From 0a47a06bdc34cd76c5e7f366b747cf6709b11cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C4=8Curda?= Date: Thu, 28 Nov 2024 09:25:45 +0100 Subject: [PATCH] Chore(demo): Hide elements in Supernova component preview - change allowed URLs --- apps/demo/partials/layout/base.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/demo/partials/layout/base.hbs b/apps/demo/partials/layout/base.hbs index 690a107fd2..6470ad8178 100644 --- a/apps/demo/partials/layout/base.hbs +++ b/apps/demo/partials/layout/base.hbs @@ -52,7 +52,7 @@ // https://app.supernova.io/8830-alma-spirit/10180-spirit/10368-shared-draft/9731-default/documentation/settings/customization/footer window.addEventListener('message', (event) => { // Check if the postMessage is from the Supernova.io domain - if (event.origin === 'https://app.supernova.io' && event.data.action === 'hide-from-visual-tests') { + if ((event.origin === 'https://spirit.supernova-docs.io' || event.origin === 'https://spirit.preview.supernova-docs.io') && event.data.action === 'hide-from-visual-tests') { const elements = document.querySelectorAll('.hide-from-visual-tests'); elements.forEach(element => { element.style.cssText = event.data.style;