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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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