Sockets allowing for live updates rather than complete rebuilds #7
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue