Skip to content

Commit cda2fc8

Browse files
committed
Merge branch 'MAGETWO-change-protocol' into 'master4'
Change getdata from vimeo See merge request !180
2 parents 7bb3f01 + e2e9cfc commit cda2fc8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/ProductVideo/view/adminhtml/web/js/get-video-information.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,10 @@ require([
506506
}
507507
);
508508
} else if (type === 'vimeo') {
509-
$.getJSON('http://www.vimeo.com/api/v2/video/' + id + '.json?callback=?',
510-
{
509+
$.ajax({
510+
url: window.location.protocol + '//www.vimeo.com/api/v2/video/' + id + '.json',
511+
dataType: 'jsonp',
512+
data: {
511513
format: 'json'
512514
},
513515
timeout: 5000,

0 commit comments

Comments
 (0)