Skip to content

Commit

Permalink
ENGCOM-804: Backport of PR-10748 for Magento 2.2: Always use https fo…
Browse files Browse the repository at this point in the history
…r Vimeo vide… #13977
  • Loading branch information
Stanislav Idolov authored Mar 10, 2018
2 parents fdaed50 + ea8e221 commit ccad75e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ define([
additionalParams += '&autoplay=1';
}

src = window.location.protocol + '//player.vimeo.com/video/' +
src = 'https://player.vimeo.com/video/' +
this._code + '?api=1&player_id=vimeo' +
this._code +
timestamp +
Expand Down Expand Up @@ -525,7 +525,7 @@ define([
);
} else if (type === 'vimeo') {
$.ajax({
url: window.location.protocol + '//www.vimeo.com/api/v2/video/' + id + '.json',
url: 'https://www.vimeo.com/api/v2/video/' + id + '.json',
dataType: 'jsonp',
data: {
format: 'json'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ define(['jquery', 'jquery/ui'], function ($) {
if (this._loop) {
additionalParams += '&loop=1';
}
src = window.location.protocol + '//player.vimeo.com/video/' +
src = 'https://player.vimeo.com/video/' +
this._code + '?api=1&player_id=vimeo' +
this._code +
timestamp +
Expand Down

0 comments on commit ccad75e

Please sign in to comment.