mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update src/utils.ts
This commit is contained in:
parent
156073a407
commit
57432b9779
1 changed files with 2 additions and 2 deletions
|
@ -381,8 +381,8 @@ export const getVersion = () => {
|
|||
);
|
||||
};
|
||||
|
||||
export const formatTime = (time: number): string => {
|
||||
return time < 1000 ? `${time} ms` : `${(time / 1000).toFixed(1)} s`;
|
||||
export const formatTime = (mseconds: number): string => {
|
||||
return mseconds < 1000 ? `${time} ms` : `${(mseconds / 1000).toFixed(1)} s`;
|
||||
};
|
||||
// Adapted from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/emoji.js
|
||||
export const supportsEmoji = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue