mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-20 07:49:59 +02:00
cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user