aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/style/fonts.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant/src/style/fonts.ts')
-rw-r--r--packages/instant/src/style/fonts.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/style/fonts.ts b/packages/instant/src/style/fonts.ts
index f305fd612..92450502d 100644
--- a/packages/instant/src/style/fonts.ts
+++ b/packages/instant/src/style/fonts.ts
@@ -1,10 +1,10 @@
export const fonts = {
include: () => {
// Inject the inter-ui font into the page
- const head = document.head || document.getElementsByTagName('head')[0];
+ const appendTo = document.head || document.getElementsByTagName('head')[0] || document.body;
const style = document.createElement('style');
style.type = 'text/css';
style.appendChild(document.createTextNode(`@import url('https://rsms.me/inter/inter-ui.css')`));
- head.appendChild(style);
+ appendTo.appendChild(style);
},
};