From 26b8d09253168801c3217277e451d175a5b2b979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dufraisse?= Date: Wed, 18 Oct 2023 17:30:08 +0200 Subject: [PATCH] fix(DynTable): does not use crypto.randomUUID --- tools/bazar/presentation/javascripts/components/BazarTable.js | 2 +- tools/bazar/presentation/javascripts/components/DynTable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bazar/presentation/javascripts/components/BazarTable.js b/tools/bazar/presentation/javascripts/components/BazarTable.js index de12d49ea..0b9b0bfba 100644 --- a/tools/bazar/presentation/javascripts/components/BazarTable.js +++ b/tools/bazar/presentation/javascripts/components/BazarTable.js @@ -265,7 +265,7 @@ let componentParams = { }, getUuid(){ if (this.uuid === null){ - this.uuid = crypto.randomUUID() + this.uuid = Date.now() + '-' + Math.round(Math.random()*10000) } return this.uuid }, diff --git a/tools/bazar/presentation/javascripts/components/DynTable.js b/tools/bazar/presentation/javascripts/components/DynTable.js index 540a63d25..d770fbfcf 100644 --- a/tools/bazar/presentation/javascripts/components/DynTable.js +++ b/tools/bazar/presentation/javascripts/components/DynTable.js @@ -175,7 +175,7 @@ export default { }, getUuid(){ if (this.uuid === null){ - return crypto.randomUUID() + return Date.now() + '-' + Math.round(Math.random()*10000) } return this.uuid },