mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
cleanup
This commit is contained in:
parent
69a1b74e05
commit
63af29d345
7 changed files with 101 additions and 17 deletions
|
@ -59,9 +59,8 @@ export const simulatePing = async () => {
|
|||
method: "HEAD",
|
||||
});
|
||||
const endTime = new Date().getTime();
|
||||
const delay = endTime - startTime;
|
||||
return delay < 1000 ? `${delay} ms` : `${(delay / 1000).toFixed(1)} s`;
|
||||
return endTime - startTime;
|
||||
} catch (e) {
|
||||
return "Error!";
|
||||
return -1;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue