mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-14 04:50:05 +02:00
fix
This commit is contained in:
@@ -382,7 +382,9 @@ export const getVersion = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const formatTime = (mseconds: number): string => {
|
export const formatTime = (mseconds: number): string => {
|
||||||
return mseconds < 1000 ? `${time} ms` : `${(mseconds / 1000).toFixed(1)} s`;
|
return mseconds < 1000
|
||||||
|
? `${mseconds} ms`
|
||||||
|
: `${(mseconds / 1000).toFixed(1)} s`;
|
||||||
};
|
};
|
||||||
// Adapted from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/emoji.js
|
// Adapted from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/emoji.js
|
||||||
export const supportsEmoji = () => {
|
export const supportsEmoji = () => {
|
||||||
|
Reference in New Issue
Block a user