Files: 6dc2c1a4ab70782adb3bd7e9c7dff831c072e153 / lib / styles-inject.js
247 bytesRaw
1 | const { h } = require('mutant') |
2 | const getCSS = require('./styles-compile') |
3 | |
4 | module.exports = () => { |
5 | getCSS((err, css) => { |
6 | if (err) return console.error(err) |
7 | |
8 | document.head.appendChild( |
9 | h('style', { innerHTML: css }) |
10 | ) |
11 | }) |
12 | } |
13 |
Built with git-ssb-web