summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2017-08-22 13:02:17 +0300
committerRasmus Andersson <rasmus@notion.se>2017-08-22 13:02:17 +0300
commit7a77792cf907d29b4a218cd32c56a7e1c174118c (patch)
treefc400e1e1c32243ea917cbdec8883c70a3ca1a52 /docs
parent6eeb644674e41fbf21c3f77321b6825042ea8b07 (diff)
downloadinter-7a77792cf907d29b4a218cd32c56a7e1c174118c.tar.xz
font family in lab
Diffstat (limited to 'docs')
-rw-r--r--docs/lab/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/lab/index.html b/docs/lab/index.html
index d5953f076..32f777e13 100644
--- a/docs/lab/index.html
+++ b/docs/lab/index.html
@@ -937,10 +937,11 @@ canvas {
<script type="text/javascript">
const fontVersion = Math.round(Date.now()).toString(36)
-const fontFamilyName = 'Interface-v' + fontVersion
+let fontFamilyName = 'Interface-v' + fontVersion
const fontCSSTemplate = document.querySelector('#font-css')
const fontCSS = fontCSSTemplate.cloneNode(true)
fontCSS.innerHTML = fontCSS.innerHTML.replace(/Interface-VERSION/g, fontFamilyName)
+fontFamilyName += ', Interface'
fontCSS.setAttribute('id', '')
fontCSS.setAttribute('type', 'text/css')
document.head.appendChild(fontCSS)