From 312ef34b9d61e553e830dfdaa50a2d2e97888f88 Mon Sep 17 00:00:00 2001 From: Nazar Leush Date: Mon, 9 Sep 2024 15:45:22 +0300 Subject: [PATCH] iframely.js: remove obsolete endpoint value --- static/js/iframely.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/static/js/iframely.js b/static/js/iframely.js index aacf77b30..f13861da6 100644 --- a/static/js/iframely.js +++ b/static/js/iframely.js @@ -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, @@ -191,9 +197,7 @@ }); }; - $.iframely.defaults = { - endpoint: "//iframely.com/iframely" - }; + $.iframely.defaults = {}; $.iframely.get = function(endpoint, query, cb) { $.ajax({