docs/website: fixing cors request access

The service we were using for cors proxing disappeared rendering the
bottom part of website not working.

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Angelo Compagnucci 2019-10-09 17:23:06 +02:00 committed by Peter Korsgaard
parent f9d2bd24ca
commit 198ef6b936

View File

@ -1,11 +1,11 @@
function load_activity(feedurl, divid) {
let container = document.getElementById(divid);
$.ajax({
url: "https://cors.io/?" + feedurl
url: "https://cors-anywhere.herokuapp.com/" + feedurl
})
.done(function(data){
let x2js = new X2JS();
let result = x2js.xml_str2json(data);
let result = x2js.xml_str2json(data.documentElement.outerHTML);
let loaded = 0;
let nb_display = 8;
if (result==null) return;