@cicada/render
Advanced tools
Comparing version 1.1.7-alpha to 1.1.7-alpha2
@@ -93,2 +93,9 @@ 'use strict'; | ||
} | ||
function replaceStylesheet(styleName, content) { | ||
if (typeof document === 'undefined') return; | ||
var styleDom = document.getElementById(styleName); | ||
if (styleDom) { | ||
styleDom.innerText = '.' + styleName + ' ' + content; | ||
} | ||
} | ||
var displayNoneStyle = createStylesheet(DISPLAY_NONE, '{ display: none !important; }'); | ||
@@ -257,2 +264,3 @@ | ||
replaceStylesheet: replaceStylesheet, | ||
createStylesheet: createStylesheet, | ||
@@ -259,0 +267,0 @@ getIdsByComponentPath: function getIdsByComponentPath(pathArr) { |
{ | ||
"name": "@cicada/render", | ||
"version": "1.1.7-alpha", | ||
"version": "1.1.7-alpha2", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
351164
63
8471