From 57432b9779e21d1bf293560c2ba4f1544c2d4fb7 Mon Sep 17 00:00:00 2001 From: Lipis Date: Sun, 7 Feb 2021 17:11:30 +0200 Subject: [PATCH] Update src/utils.ts --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index d81bb8a2c..54969c986 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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 = () => {