Update src/networkStats.ts

This commit is contained in:
Lipis
2021-02-07 17:06:57 +02:00
committed by GitHub
parent f676a20332
commit 156073a407

View File

@@ -60,7 +60,7 @@ export const simulatePing = async () => {
}); });
const endTime = new Date().getTime(); const endTime = new Date().getTime();
return endTime - startTime; return endTime - startTime;
} catch (e) { } catch (error) {
return -1; return -1;
} }
}; };