File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11// -------------------------------------------
2- // API: Pre-applies Scoped CSS [css=name]
2+ // Pre-applies Scoped CSS [css=name]
33// -------------------------------------------
44export default function precss ( ripple ) {
55 if ( ! client ) return ;
@@ -30,13 +30,13 @@ const render = ripple => next => host => {
3030 // retrieve styles
3131 styles = css
3232 . map ( from ( ripple . resources ) )
33- . map ( key ( ' body' ) )
33+ . map ( d => d . body )
3434 . map ( shadow ? identity : transform ( css ) )
3535
3636 // reuse or create style tag
3737 css
3838 . map ( d => raw ( `style[resource="${ d } "]` , shadow ? root : head ) || el ( `style[resource=${ d } ]` ) )
39- . map ( key ( 'innerHTML' , ( d , i ) => styles [ i ] ) )
39+ . map ( ( d , i ) => d . innerHTML = styles [ i ] )
4040 . filter ( not ( by ( 'parentNode' ) ) )
4141 . map ( d => shadow ? root . insertBefore ( d , root . firstChild ) : head . appendChild ( d ) )
4242
@@ -59,7 +59,6 @@ import from from 'utilise/from'
5959import all from 'utilise/all'
6060import raw from 'utilise/raw'
6161import str from 'utilise/str'
62- import key from 'utilise/key'
6362import not from 'utilise/not'
6463import by from 'utilise/by'
6564import is from 'utilise/is'
You can’t perform that action at this time.
0 commit comments