diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-27 02:41:09 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-27 02:41:09 +0800 |
commit | a414dc9b83c14b277af90ce8397db3736a51a4d3 (patch) | |
tree | e9814de850892932b539c88e1798d44b00db563a /packages/instant/src/style/fonts.ts | |
parent | 951a5271e15cebb010281de3b8cbfb3972ecec83 (diff) | |
parent | 0f6307169604f36b0316f236eb96d6001b788f50 (diff) | |
download | dexon-sol-tools-a414dc9b83c14b277af90ce8397db3736a51a4d3.tar dexon-sol-tools-a414dc9b83c14b277af90ce8397db3736a51a4d3.tar.gz dexon-sol-tools-a414dc9b83c14b277af90ce8397db3736a51a4d3.tar.bz2 dexon-sol-tools-a414dc9b83c14b277af90ce8397db3736a51a4d3.tar.lz dexon-sol-tools-a414dc9b83c14b277af90ce8397db3736a51a4d3.tar.xz dexon-sol-tools-a414dc9b83c14b277af90ce8397db3736a51a4d3.tar.zst dexon-sol-tools-a414dc9b83c14b277af90ce8397db3736a51a4d3.zip |
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/fixed-orders-in-render-method
Diffstat (limited to 'packages/instant/src/style/fonts.ts')
-rw-r--r-- | packages/instant/src/style/fonts.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/instant/src/style/fonts.ts b/packages/instant/src/style/fonts.ts index 975a30a61..92450502d 100644 --- a/packages/instant/src/style/fonts.ts +++ b/packages/instant/src/style/fonts.ts @@ -1,10 +1,10 @@ -import { injectGlobal } from './theme'; - export const fonts = { include: () => { // Inject the inter-ui font into the page - return injectGlobal` - @import url('https://rsms.me/inter/inter-ui.css'); - `; + 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')`)); + appendTo.appendChild(style); }, }; |