Update src/utils.ts

This commit is contained in:
Lipis 2021-02-07 17:11:30 +02:00 committed by GitHub
parent 156073a407
commit 57432b9779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = () => {