Skip to content

Commit 9af6782

Browse files
author
Nathan Toombs
committed
Add froogaloop library as a dependency to load-player module
1 parent e47ac7d commit 9af6782

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/code/Magento/ProductVideo/view/frontend/requirejs-config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ var config = {
77
map: {
88
'*': {
99
loadPlayer: 'Magento_ProductVideo/js/load-player',
10-
fotoramaVideoEvents: 'Magento_ProductVideo/js/fotorama-add-video-events'
10+
fotoramaVideoEvents: 'Magento_ProductVideo/js/fotorama-add-video-events',
11+
vimeoAPI: 'https://secure-a.vimeocdn.com/js/froogaloop2.min.js'
1112
}
12-
}
13+
},
14+
shim: {
15+
vimeoAPI: {}
16+
}
1317
};

app/code/Magento/ProductVideo/view/frontend/web/js/load-player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@version 0.0.1
88
@requires jQuery & jQuery UI
99
*/
10-
define(['jquery', 'jquery/ui'], function ($) {
10+
define(['jquery', 'jquery/ui', 'vimeoAPI'], function ($) {
1111
'use strict';
1212

1313
var videoRegister = {

0 commit comments

Comments
 (0)