Skip to content

Commit

Permalink
iframely.js: remove obsolete endpoint value
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Sep 9, 2024
1 parent 7c6fc45 commit 312ef34
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions static/js/iframely.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@
}

$.support.cors = true;

if (!$.iframely.defaults.endpoint) {
console.warn('Set "$.iframely.defaults.endpoint" to make requests, e.g. "https://yourdomain.com/iframely".')
return;
}

$.ajax({
crossDomain: true,
url: $.iframely.defaults.endpoint,
Expand All @@ -191,9 +197,7 @@
});
};

$.iframely.defaults = {
endpoint: "//iframely.com/iframely"
};
$.iframely.defaults = {};

$.iframely.get = function(endpoint, query, cb) {
$.ajax({
Expand Down

0 comments on commit 312ef34

Please sign in to comment.