diff --git a/apps/demo/partials/layout/base.hbs b/apps/demo/partials/layout/base.hbs index 43ae96cd35..4a84d30837 100644 --- a/apps/demo/partials/layout/base.hbs +++ b/apps/demo/partials/layout/base.hbs @@ -54,7 +54,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 === allowedOriginPattern && event.data.action === 'hide-from-visual-tests') { + if (allowedOriginPattern.test(event.origin) && event.data.action === 'hide-from-visual-tests') { const elements = document.querySelectorAll('.hide-from-visual-tests'); elements.forEach(element => { element.style.cssText = event.data.style;