Fix page reload breaking stuff and add few other things

This commit is contained in:
Prayag Prajapati committed 2023-02-24 20:49:43 +05:30
1 parent 899fcb0479
commit 93b79c5fba
7 files changed
+106 -44

No files matched your search

+2 -1
View File
@@ -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),