diff options
| author | s-ol <s+removethis@s-ol.nu> | 2021-01-20 23:15:14 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2021-01-22 13:45:11 +0000 |
| commit | 61a9215b410686ed587c6681fe86d181d895beac (patch) | |
| tree | 5118631f517c909480b7bd4217c77fd877c7f8ff /app/css.js | |
| parent | add shell.nix (diff) | |
| download | isomorphic-kb-explorer-61a9215b410686ed587c6681fe86d181d895beac.tar.gz isomorphic-kb-explorer-61a9215b410686ed587c6681fe86d181d895beac.zip | |
add different layouts
Diffstat (limited to 'app/css.js')
| -rw-r--r-- | app/css.js | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -1,13 +1 @@ -export default (code) => { - const style = document.createElement('style'); - document.head.appendChild(style); - style.appendChild(document.createTextNode('')); - let i = 0; - for (const v of code.split('}')) { - if (v.indexOf('{') < 0) continue; - style.sheet.insertRule(v + '}', i++); - } - - return style; -}; |
