Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions client/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,25 @@ 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 &&
window.location.href.indexOf('embed') === -1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small issue with this is it will also hide the banner if the username includes full or embed

) {
// 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;
Expand Down
Loading