@codecademy/tracking 1.0.41-alpha.5bf2ad9f36.0 → 1.0.41

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.
@@ -56,6 +56,13 @@ export const partytownConfig = () => ({
56
56
  if (url.hostname === 'bat.bing.com') {
57
57
  return new URL(`partytown-bing${url.pathname}${url.search}`, location.origin);
58
58
  }
59
+
60
+ /*
61
+ * Proxy YouTube requests to resolve CORS issues
62
+ */
63
+ if (url.hostname === 'www.youtube.com') {
64
+ return new URL(`partytown-youtube${url.pathname}${url.search}`, location.origin);
65
+ }
59
66
  return url;
60
67
  }
61
68
  });
@@ -12,7 +12,4 @@ export function initializePartytown() {
12
12
  let data = _ref.data;
13
13
  gtmDoubleFrame(data);
14
14
  };
15
- const styles = document.createElement('style');
16
- styles.innerText = `body > img[aria-hidden=true] { position: absolute; }`;
17
- document.head.appendChild(styles);
18
15
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/tracking",
3
3
  "description": "Tracking library for Codecademy",
4
- "version": "1.0.41-alpha.5bf2ad9f36.0",
4
+ "version": "1.0.41",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@builder.io/partytown": "^0.10.2"
@@ -16,5 +16,5 @@
16
16
  "access": "public"
17
17
  },
18
18
  "repository": "git@github.com:codecademy-engineering/mono.git",
19
- "gitHead": "69438ff1fbf14e88ad03d190df94710cd7a894ec"
19
+ "gitHead": "57c6eceecaa202dbec1458d784b676f3b2953b87"
20
20
  }