Update scripts.js

This commit is contained in:
Kristy Fournier 2026-01-30 22:06:43 -05:00
parent f17ab0c426
commit 384b369eee

View file

@ -71,7 +71,7 @@ async function getFromServer(bodyInfo, source="",password=adminPass) {
} catch(e) { } catch(e) {
// console.log("error print here:"); // console.log("error print here:");
// console.log(e); // console.log(e);
if (e.toString().contains("TypeError: Failed to fetch")){ if (e.toString().includes("TypeError: Failed to fetch")){
alertText("Error: Can't Connect to Server (is the ip set?)") alertText("Error: Can't Connect to Server (is the ip set?)")
} else { } else {
alertText("Error: " + e); alertText("Error: " + e);