@@ -68,7 +68,7 @@ describe("Head", () => {
68
68
date = { "" }
69
69
description = { "" }
70
70
cookieConsentColor = { "303F9F" }
71
- />
71
+ /> ,
72
72
) ;
73
73
74
74
const helmet = Helmet . peek ( ) ;
@@ -85,13 +85,13 @@ describe("Head", () => {
85
85
date = { "" }
86
86
description = { "" }
87
87
cookieConsentColor = { "303F9F" }
88
- />
88
+ /> ,
89
89
) ;
90
90
91
91
const helmet = Helmet . peek ( ) ;
92
92
93
93
expect ( helmet . title ) . toEqual (
94
- "Fabrizio Duroni | Fabrizio Duroni ‘Chicio Coding’"
94
+ "Fabrizio Duroni | Fabrizio Duroni ‘Chicio Coding’" ,
95
95
) ;
96
96
} ) ;
97
97
} ) ;
@@ -106,7 +106,7 @@ describe("Head", () => {
106
106
date = { "" }
107
107
description = { "" }
108
108
cookieConsentColor = { "303F9F" }
109
- />
109
+ /> ,
110
110
) ;
111
111
112
112
const helmet = Helmet . peek ( ) ;
@@ -124,7 +124,7 @@ describe("Head", () => {
124
124
date = { "" }
125
125
description = { "" }
126
126
cookieConsentColor = { "303F9F" }
127
- />
127
+ /> ,
128
128
) ;
129
129
130
130
const helmet = Helmet . peek ( ) ;
@@ -145,7 +145,7 @@ describe("Head", () => {
145
145
date = { "" }
146
146
description = { "" }
147
147
cookieConsentColor = { "303F9F" }
148
- />
148
+ /> ,
149
149
) ;
150
150
151
151
const helmet = Helmet . peek ( ) ;
@@ -179,7 +179,7 @@ describe("Head", () => {
179
179
date = { "" }
180
180
description = { "" }
181
181
cookieConsentColor = { "#303F9F" }
182
- />
182
+ /> ,
183
183
) ;
184
184
185
185
const helmet = Helmet . peek ( ) ;
@@ -195,7 +195,7 @@ describe("Head", () => {
195
195
{
196
196
type : "text/javascript" ,
197
197
innerHTML :
198
- "\nif (typeof window !== \"undefined\") {\n window.addEventListener('load', () => { \n window.cookieconsent.initialise({\n palette: {\n popup: {\n background: '#303F9F',\n text: '#ffffff'\n },\n button: {\n background: '#0F67FF',\n text: '#ffffff'\n }\n },\n theme: 'classic',\n content: {\n dismiss: 'Ok',\n href: window.location.protocol + '//' + window.location.host + '/cookie-policy/',\n message: 'This website uses cookies to ensure you get the best experience.',\n link: 'Learn more about cookie policy'\n }\n });\n });\n} else {\n console.log(\"no cookieconsent\");\n} \n" ,
198
+ "\nvar url = new URL(window.location.href);\nif (typeof window !== \"undefined\" && !url.searchParams.has(\"app\")) {\n window.addEventListener('load', () => { \n window.cookieconsent.initialise({\n palette: {\n popup: {\n background: '#303F9F',\n text: '#ffffff'\n },\n button: {\n background: '#0F67FF',\n text: '#ffffff'\n }\n },\n theme: 'classic',\n content: {\n dismiss: 'Ok',\n href: window.location.protocol + '//' + window.location.host + '/cookie-policy/',\n message: 'This website uses cookies to ensure you get the best experience.',\n link: 'Learn more about cookie policy'\n }\n });\n });\n} else {\n console.log(\"no cookieconsent\");\n} \n" ,
199
199
} ,
200
200
{
201
201
type : "application/ld+json" ,
@@ -214,7 +214,7 @@ describe("Head", () => {
214
214
date = { "" }
215
215
description = { "" }
216
216
cookieConsentColor = { "303F9F" }
217
- />
217
+ /> ,
218
218
) ;
219
219
220
220
const helmet = Helmet . peek ( ) ;
0 commit comments