From 0cd4d0bc62e9ee60e4f385241a249beb5bc03a31 Mon Sep 17 00:00:00 2001 From: raclim <43053081+raclim@users.noreply.github.com> Date: Wed, 10 Sep 2025 08:41:24 -0400 Subject: [PATCH 1/2] banner not visible in fullscreen --- client/index.jsx | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/client/index.jsx b/client/index.jsx index f050230c7b..aa4a5c0c6a 100644 --- a/client/index.jsx +++ b/client/index.jsx @@ -20,21 +20,22 @@ const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); -// Add a banner to the page -const banner = document.createElement('div'); -banner.id = 'processing-banner'; -document.body.appendChild(banner); +if (window.location.href.indexOf('full') === -1) { + // Add a banner to the page + const banner = document.createElement('div'); + banner.id = 'processing-banner'; + document.body.appendChild(banner); -const link = document.createElement('link'); -link.rel = 'stylesheet'; -link.href = 'https://foundation-donate-banner.netlify.app/static/css/main.css'; -document.head.appendChild(link); + const link = document.createElement('link'); + link.rel = 'stylesheet'; + link.href = + 'https://foundation-donate-banner.netlify.app/static/css/main.css'; + document.head.appendChild(link); -const script = document.createElement('script'); -script.src = 'https://foundation-donate-banner.netlify.app/static/js/main.js'; -document.body.appendChild(script); + const script = document.createElement('script'); + script.src = 'https://foundation-donate-banner.netlify.app/static/js/main.js'; + document.body.appendChild(script); -if (window.location.href.indexOf('full') === -1) { const buttonScript = document.createElement('script'); buttonScript.type = 'text/javascript'; buttonScript.defer = true; From 325350d291b30ae4c10ec8788a3d970b9bc03473 Mon Sep 17 00:00:00 2001 From: raclim <43053081+raclim@users.noreply.github.com> Date: Wed, 10 Sep 2025 08:50:40 -0400 Subject: [PATCH 2/2] banner not visible in embed --- client/index.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/index.jsx b/client/index.jsx index aa4a5c0c6a..4b46858a66 100644 --- a/client/index.jsx +++ b/client/index.jsx @@ -20,7 +20,10 @@ const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); -if (window.location.href.indexOf('full') === -1) { +if ( + window.location.href.indexOf('full') === -1 && + window.location.href.indexOf('embed') === -1 +) { // Add a banner to the page const banner = document.createElement('div'); banner.id = 'processing-banner';