@internetstiftelsen/styleguide 5.0.14-beta.0.14 → 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.
|
@@ -151,7 +151,6 @@ function delegateClick(e) {
|
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
loadYoutubeAPI();
|
|
155
154
|
el.youtube.playVideo();
|
|
156
155
|
}
|
|
157
156
|
|
|
@@ -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
|
@@ -134,7 +134,6 @@ function delegateClick(e) {
|
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
loadYoutubeAPI();
|
|
138
137
|
el.youtube.playVideo();
|
|
139
138
|
}
|
|
140
139
|
|
|
@@ -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
|
|