From 95cfe9f648b3a6fb8b305f40c46872adb4f0f4b3 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 15 Feb 2022 01:33:54 +0000 Subject: [PATCH] use performance.now() for random id --- app/views/console/comps/header.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/console/comps/header.phtml b/app/views/console/comps/header.phtml index d526a4d56..185d387a9 100644 --- a/app/views/console/comps/header.phtml +++ b/app/views/console/comps/header.phtml @@ -278,7 +278,7 @@ const sdk = window.ls.container.get('sdk'); const file = formData.get('file'); const fileId = formData.get('fileId'); - const id = fileId === 'unique()' ? new Date().getTime().toString() : fileId; + const id = fileId === 'unique()' ? performance.now() : fileId; let read = formData.get('read'); if(read) { read = JSON.parse(read);