@internetstiftelsen/styleguide 5.0.14-beta.0.1 → 5.0.14-beta.0.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.
@@ -23,7 +23,7 @@ var missingConsentMessage = 'För att spela Youtubefilmer krävs att "Riktade ka
23
23
  function loadYoutubeAPI() {
24
24
  var id = 'iisYoutubeAPI';
25
25
 
26
- if (document.getElementById(id)) {
26
+ if (document.getElementById(id && _hasCookieConsent2.default)) {
27
27
  return;
28
28
  }
29
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetstiftelsen/styleguide",
3
- "version": "5.0.14-beta.0.1",
3
+ "version": "5.0.14-beta.0.3",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
@@ -8,7 +8,7 @@ const missingConsentMessage = 'För att spela Youtubefilmer krävs att "Riktade
8
8
  function loadYoutubeAPI() {
9
9
  const id = 'iisYoutubeAPI';
10
10
 
11
- if (document.getElementById(id)) {
11
+ if (document.getElementById(id && consent)) {
12
12
  return;
13
13
  }
14
14