Commit f9ac917
Changed files (1)
src
components
user
src/components/user/Tabs.astro
@@ -4,7 +4,7 @@ interface Props {
}
const syncKey = Astro.props.syncKey;
-const tabsName = `tabs-${Math.random().toString(36).substring(2, 9)}`;
+const tabsName = `tabs-${crypto.randomUUID()}`;
const html = (await Astro.slots.render('default')).replaceAll(/{{{tabs-name}}}/g, tabsName);
---