Skip to content

Commit

Permalink
Merge pull request #11 from tbaba/enable-to-work-on-https-website
Browse files Browse the repository at this point in the history
Enable to use preview both SSL site and non-SSL site
  • Loading branch information
screeley committed Jan 24, 2013
2 parents d690047 + 958cfe3 commit 39619b3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion jquery.preview.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -2225,7 +2225,7 @@ function Preview(elem, options) {
// Make the request to Embedly. Note we are using the
// preview endpoint: http://embed.ly/docs/endpoints/1/preview
$.ajax({
url: 'http://api.embed.ly/1/preview',
url: document.location.protocol + '//api.embed.ly/1/preview',
dataType: 'jsonp',
data: data,
success: this._callback,
Expand Down
4 changes: 2 additions & 2 deletions jquery.preview.full.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jquery.preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ function Preview(elem, options) {
// Make the request to Embedly. Note we are using the
// preview endpoint: http://embed.ly/docs/endpoints/1/preview
$.ajax({
url: 'http://api.embed.ly/1/preview',
url: document.location.protocol + '//api.embed.ly/1/preview',
dataType: 'jsonp',
data: data,
success: this._callback,
Expand Down
4 changes: 2 additions & 2 deletions jquery.preview.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function Preview(elem, options) {
// Make the request to Embedly. Note we are using the
// preview endpoint: http://embed.ly/docs/endpoints/1/preview
$.ajax({
url: 'http://api.embed.ly/1/preview',
url: document.location.protocol + '//api.embed.ly/1/preview',
dataType: 'jsonp',
data: data,
success: this._callback,
Expand Down

0 comments on commit 39619b3

Please sign in to comment.