diff --git a/ESP32_AP-Flasher/wwwroot/ota.js b/ESP32_AP-Flasher/wwwroot/ota.js index 4b700ff8..61f089a1 100644 --- a/ESP32_AP-Flasher/wwwroot/ota.js +++ b/ESP32_AP-Flasher/wwwroot/ota.js @@ -167,7 +167,7 @@ export async function updateWebpage(fileUrl, tagname, showReload) { print("Updating littleFS partition..."); - fetch("http://openepaperlink.eu/getupdate/?url=" + fileUrl) + fetch("//openepaperlink.eu/getupdate/?url=" + fileUrl) .then(response => response.json()) .then(data => { checkfiles(data); @@ -271,7 +271,7 @@ export async function updateESP(fileUrl, showConfirm) { while (retryCount < maxRetries) { try { - const response = await fetch("http://openepaperlink.eu/getupdate/?url=" + fileUrl + "&env=" + env); + const response = await fetch("//openepaperlink.eu/getupdate/?url=" + fileUrl + "&env=" + env); const responseBody = await response.text(); if (!response.ok) { throw new Error("Network response was not OK: " + responseBody); @@ -389,7 +389,7 @@ $('#selectRepo').onclick = function (event) { const filesJsonAsset = assets.find(asset => asset.name === 'filesystem.json'); const binariesJsonAsset = assets.find(asset => asset.name === 'binaries.json'); if (filesJsonAsset && binariesJsonAsset) { - const updateUrl = "http://openepaperlink.eu/getupdate/?url=" + binariesJsonAsset.browser_download_url + "&env=" + $('#repo').value; + const updateUrl = "//openepaperlink.eu/getupdate/?url=" + binariesJsonAsset.browser_download_url + "&env=" + $('#repo').value; return fetch(updateUrl); } else { throw new Error("Json file binaries.json and/or filesystem.json not found in the release assets");