@internetstiftelsen/styleguide 5.0.14-beta.0.6 → 5.0.14-beta.0.8
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.
|
@@ -83,6 +83,7 @@ function createCover(el) {
|
|
|
83
83
|
createConsentWarning(el);
|
|
84
84
|
} else {
|
|
85
85
|
destroyConsentWarning(el);
|
|
86
|
+
loadYoutubeAPI();
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
if (el.getElementsByTagName('img').length) {
|
|
@@ -174,7 +175,6 @@ function setupPlayers(container) {
|
|
|
174
175
|
return;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
|
-
loadYoutubeAPI();
|
|
178
178
|
[].forEach.call(players, createCover);
|
|
179
179
|
}
|
|
180
180
|
|
|
@@ -8,8 +8,6 @@ var _hasCookieConsent = require('../../assets/js/hasCookieConsent');
|
|
|
8
8
|
|
|
9
9
|
var _hasCookieConsent2 = _interopRequireDefault(_hasCookieConsent);
|
|
10
10
|
|
|
11
|
-
var _youtube = require('../../assets/js/youtube');
|
|
12
|
-
|
|
13
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
12
|
|
|
15
13
|
var consent = (0, _hasCookieConsent2.default)('C0003');
|
package/package.json
CHANGED
package/src/assets/js/youtube.js
CHANGED
|
@@ -68,6 +68,7 @@ function createCover(el) {
|
|
|
68
68
|
createConsentWarning(el);
|
|
69
69
|
} else {
|
|
70
70
|
destroyConsentWarning(el);
|
|
71
|
+
loadYoutubeAPI();
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
if (el.getElementsByTagName('img').length) {
|
|
@@ -157,7 +158,6 @@ export function setupPlayers(container) {
|
|
|
157
158
|
return;
|
|
158
159
|
}
|
|
159
160
|
|
|
160
|
-
loadYoutubeAPI();
|
|
161
161
|
[].forEach.call(players, createCover);
|
|
162
162
|
}
|
|
163
163
|
|