@@ -20,21 +20,25 @@ const initialState = window.__INITIAL_STATE__;
20
20
21
21
const store = configureStore ( initialState ) ;
22
22
23
- // Add a banner to the page
24
- const banner = document . createElement ( 'div' ) ;
25
- banner . id = 'processing-banner' ;
26
- document . body . appendChild ( banner ) ;
23
+ if (
24
+ window . location . href . indexOf ( 'full' ) === - 1 &&
25
+ window . location . href . indexOf ( 'embed' ) === - 1
26
+ ) {
27
+ // Add a banner to the page
28
+ const banner = document . createElement ( 'div' ) ;
29
+ banner . id = 'processing-banner' ;
30
+ document . body . appendChild ( banner ) ;
27
31
28
- const link = document . createElement ( 'link' ) ;
29
- link . rel = 'stylesheet' ;
30
- link . href = 'https://foundation-donate-banner.netlify.app/static/css/main.css' ;
31
- document . head . appendChild ( link ) ;
32
+ const link = document . createElement ( 'link' ) ;
33
+ link . rel = 'stylesheet' ;
34
+ link . href =
35
+ 'https://foundation-donate-banner.netlify.app/static/css/main.css' ;
36
+ document . head . appendChild ( link ) ;
32
37
33
- const script = document . createElement ( 'script' ) ;
34
- script . src = 'https://foundation-donate-banner.netlify.app/static/js/main.js' ;
35
- document . body . appendChild ( script ) ;
38
+ const script = document . createElement ( 'script' ) ;
39
+ script . src = 'https://foundation-donate-banner.netlify.app/static/js/main.js' ;
40
+ document . body . appendChild ( script ) ;
36
41
37
- if ( window . location . href . indexOf ( 'full' ) === - 1 ) {
38
42
const buttonScript = document . createElement ( 'script' ) ;
39
43
buttonScript . type = 'text/javascript' ;
40
44
buttonScript . defer = true ;
0 commit comments