Update src/utils.ts
This commit is contained in:
parent
156073a407
commit
57432b9779
@ -381,8 +381,8 @@ export const getVersion = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const formatTime = (time: number): string => {
|
export const formatTime = (mseconds: number): string => {
|
||||||
return time < 1000 ? `${time} ms` : `${(time / 1000).toFixed(1)} s`;
|
return mseconds < 1000 ? `${time} 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 = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user