Use random in case crypto is not available

This commit is contained in:
barsdeveloper
2022-07-15 16:58:26 +02:00
parent 4a6b021e0c
commit 47c15fbf8d
7 changed files with 1964 additions and 1963 deletions

View File

@@ -63,7 +63,7 @@ export default class LinkTemplate extends ITemplate {
* @param {LinkElement} link
*/
render(link) {
const uniqueId = crypto.randomUUID()
const uniqueId = "ueb-id-" + Math.floor(Math.random() * 1E12)
return html`
<svg version="1.2" baseProfile="tiny" width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="none">
<g>