From 61a9215b410686ed587c6681fe86d181d895beac Mon Sep 17 00:00:00 2001 From: s-ol Date: Thu, 21 Jan 2021 00:15:14 +0100 Subject: add different layouts --- app/css.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'app/css.js') diff --git a/app/css.js b/app/css.js index 842214a..8b13789 100644 --- a/app/css.js +++ b/app/css.js @@ -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; -}; -- cgit v1.2.3