Commit f9ac917

HPCesia <me@hpcesia.com>
2025-03-14 09:33:25
fix: replace random tab name generation with UUID
1 parent 421695d
Changed files (1)
src
components
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);
 ---