Fix page reload breaking stuff and add few other things
This commit is contained in:
7 files changed
+106
-44
No files matched your search
+2
-1
@@ -117,7 +117,7 @@ function App() {
|
||||
const navigate = useNavigate();
|
||||
|
||||
const [serverReachable, setServerReachable] = useState(true);
|
||||
const [checkingServer, setChecking] = useState(true);
|
||||
const [checkingServer, setChecking] = useState(false);
|
||||
|
||||
const serverAvailable = async () => {
|
||||
const server = await getServer();
|
||||
@@ -154,6 +154,7 @@ function App() {
|
||||
};
|
||||
|
||||
const pingServer = () => {
|
||||
setChecking(true);
|
||||
let data;
|
||||
fetch(`${window.api.basePath}/System/Ping`, {
|
||||
body: JSON.stringify(data),
|
||||
|
||||
Reference in new issue
Block a user