We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7d3517 commit 3a8f838Copy full SHA for 3a8f838
1 file changed
packages/astro-font/utils.ts
@@ -324,7 +324,7 @@ export async function createBaseCSS(fontCollection: Config): Promise<string[]> {
324
export async function createFontCSS(fontCollection: Config): Promise<string> {
325
const collection = []
326
const fallbackFont = await getFallbackFont(fontCollection)
327
- const fallbackName = `'${fontCollection.fallbackName || '_font_fallback_' + new Date().getTime()}'`
+ const fallbackName = `'${fontCollection.fallbackName || '_font_fallback_' + Math.floor(Math.random() * Date.now())}'`
328
if (fontCollection.selector) {
329
collection.push(fontCollection.selector)
330
collection.push(`{`)
0 commit comments