SSL
This commit is contained in:
parent
e887c57348
commit
ac8203a047
|
@ -4,7 +4,7 @@ const resultsContainer = document.getElementById('searchResults');
|
||||||
let allresults = [];
|
let allresults = [];
|
||||||
window.onbeforeunload=searchBar.value="";
|
window.onbeforeunload=searchBar.value="";
|
||||||
|
|
||||||
const url = 'http://setaapi.serverissimo.freeddns.org/stoplist';
|
const url = 'https://setaapi.serverissimo.freeddns.org/stoplist';
|
||||||
fetch(url)
|
fetch(url)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (!response.ok) throw new Error("Errore nel caricamento dei dati.");
|
if (!response.ok) throw new Error("Errore nel caricamento dei dati.");
|
||||||
|
|
|
@ -6,7 +6,7 @@ const codice = params.get('code');
|
||||||
const fermata_span = document.getElementById('fermata-span');
|
const fermata_span = document.getElementById('fermata-span');
|
||||||
fermata_span.innerHTML = `"${nome}"`;
|
fermata_span.innerHTML = `"${nome}"`;
|
||||||
|
|
||||||
const urlBackend = `http://setaapi.serverissimo.freeddns.org/arrivals/${codice}`;
|
const urlBackend = `https://setaapi.serverissimo.freeddns.org/arrivals/${codice}`;
|
||||||
function caricadati(){
|
function caricadati(){
|
||||||
fetch(urlBackend)
|
fetch(urlBackend)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
Loading…
Reference in New Issue