@internetstiftelsen/styleguide 5.0.14-beta.0.13 → 5.0.14-beta.0.15
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.
|
@@ -147,7 +147,6 @@ function delegateClick(e) {
|
|
|
147
147
|
|
|
148
148
|
if (!el.youtube) {
|
|
149
149
|
setupYoutubePlayer(el);
|
|
150
|
-
loadYoutubeAPI();
|
|
151
150
|
|
|
152
151
|
return;
|
|
153
152
|
}
|
|
@@ -179,6 +178,7 @@ function setupPlayers(container) {
|
|
|
179
178
|
}
|
|
180
179
|
|
|
181
180
|
window.onYouTubeIframeAPIReady = function () {
|
|
181
|
+
loadYoutubeAPI();
|
|
182
182
|
document.body.addEventListener('click', delegateClick);
|
|
183
183
|
};
|
|
184
184
|
|
package/package.json
CHANGED
package/src/assets/js/youtube.js
CHANGED
|
@@ -130,7 +130,6 @@ function delegateClick(e) {
|
|
|
130
130
|
|
|
131
131
|
if (!el.youtube) {
|
|
132
132
|
setupYoutubePlayer(el);
|
|
133
|
-
loadYoutubeAPI();
|
|
134
133
|
|
|
135
134
|
return;
|
|
136
135
|
}
|
|
@@ -162,6 +161,7 @@ export function setupPlayers(container) {
|
|
|
162
161
|
}
|
|
163
162
|
|
|
164
163
|
window.onYouTubeIframeAPIReady = () => {
|
|
164
|
+
loadYoutubeAPI();
|
|
165
165
|
document.body.addEventListener('click', delegateClick);
|
|
166
166
|
};
|
|
167
167
|
|