@@ -20,21 +20,22 @@ const initialState = window.__INITIAL_STATE__;
2020
2121const store = configureStore ( initialState ) ;
2222
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 ( window . location . href . indexOf ( 'full' ) === - 1 ) {
24+ // Add a banner to the page
25+ const banner = document . createElement ( 'div' ) ;
26+ banner . id = 'processing-banner' ;
27+ document . body . appendChild ( banner ) ;
2728
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 ) ;
29+ const link = document . createElement ( 'link' ) ;
30+ link . rel = 'stylesheet' ;
31+ link . href =
32+ 'https://foundation-donate-banner.netlify.app/static/css/main.css' ;
33+ document . head . appendChild ( link ) ;
3234
33- const script = document . createElement ( 'script' ) ;
34- script . src = 'https://foundation-donate-banner.netlify.app/static/js/main.js' ;
35- document . body . appendChild ( script ) ;
35+ const script = document . createElement ( 'script' ) ;
36+ script . src = 'https://foundation-donate-banner.netlify.app/static/js/main.js' ;
37+ document . body . appendChild ( script ) ;
3638
37- if ( window . location . href . indexOf ( 'full' ) === - 1 ) {
3839 const buttonScript = document . createElement ( 'script' ) ;
3940 buttonScript . type = 'text/javascript' ;
4041 buttonScript . defer = true ;
0 commit comments