summaryrefslogtreecommitdiff
path: root/docs/lab
diff options
context:
space:
mode:
Diffstat (limited to 'docs/lab')
-rw-r--r--docs/lab/index.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/lab/index.html b/docs/lab/index.html
index 52c3bfd7f..994aa953e 100644
--- a/docs/lab/index.html
+++ b/docs/lab/index.html
@@ -1084,7 +1084,9 @@ const fontVersion = Math.round(Date.now()).toString(36)
let fontFamilyName = 'Inter-UI-v' + fontVersion
const fontCSSTemplate = document.querySelector('#font-css')
const fontCSS = fontCSSTemplate.cloneNode(true)
-fontCSS.innerHTML = fontCSS.innerHTML.replace(/Inter-UI-VERSION/g, fontFamilyName)
+fontCSS.innerHTML = fontCSS.innerHTML
+ .replace(/Inter-UI-VERSION/g, fontFamilyName)
+ .replace(/(\.woff2?)/g, '$1?r='+fontVersion)
fontFamilyName += ", 'Inter UI'"
fontCSS.setAttribute('id', '')
fontCSS.setAttribute('type', 'text/css')