@financial-times/dotcom-ui-shell 12.3.2 → 12.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-ui-shell",
3
- "version": "12.3.2",
3
+ "version": "12.3.3",
4
4
  "description": "",
5
5
  "main": "component.js",
6
6
  "browser": "browser.js",
@@ -19,10 +19,10 @@
19
19
  "author": "",
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "@financial-times/dotcom-ui-app-context": "^12.3.2",
23
- "@financial-times/dotcom-ui-base-styles": "^12.3.2",
24
- "@financial-times/dotcom-ui-bootstrap": "^12.3.2",
25
- "@financial-times/dotcom-ui-flags": "^12.3.2",
22
+ "@financial-times/dotcom-ui-app-context": "^12.3.3",
23
+ "@financial-times/dotcom-ui-base-styles": "^12.3.3",
24
+ "@financial-times/dotcom-ui-bootstrap": "^12.3.3",
25
+ "@financial-times/dotcom-ui-flags": "^12.3.3",
26
26
  "mime-types": "^2.1.26"
27
27
  },
28
28
  "peerDependencies": {
@@ -175,9 +175,15 @@ exports[`dotcom-ui-shell/src/components/Shell renders the GTM script when the en
175
175
  console.error('The script ' + script + ' failed to load') // eslint-disable-line no-console
176
176
  }
177
177
 
178
+ const scriptHost = new URL(script).hostname
179
+
178
180
  if (/enhanced/.test(doc.className)) {
179
- console.warn('Script loading failed, reverting to core experience') // eslint-disable-line no-console
180
- doc.className = doc.className.replace('enhanced', 'core')
181
+ if (scriptHost === 'www.ft.com') {
182
+ console.warn('Script loading failed, reverting to core experience') // eslint-disable-line no-console
183
+ doc.className = doc.className.replace('enhanced', 'core')
184
+ } else {
185
+ console.warn('Third-party script, not reverting to core experience') // eslint-disable-line no-console
186
+ }
181
187
  }
182
188
 
183
189
  if (scriptsConfig.trackErrors) {