@cicada/render
Advanced tools
Comparing version 1.1.8-alpha11 to 1.1.8-alpha12
@@ -121,3 +121,3 @@ 'use strict'; | ||
function createStylesheet(clsName, content) { | ||
clsName = '' + STYLE_SHEET_PREFIX + clsName; | ||
// clsName = `${STYLE_SHEET_PREFIX}${clsName}` | ||
if (typeof document === 'undefined' || document.getElementById(clsName)) return clsName; | ||
@@ -127,3 +127,3 @@ var styleDom = document.createElement('style'); | ||
var attrName = 'data-cicada-' + clsName; | ||
styleDom.innerText = '.' + clsName + ', [' + attrName + '] ' + content; | ||
styleDom.innerText = '.' + clsName + ', [' + attrName + '] { ' + content + ' }'; | ||
document.head.appendChild(styleDom); | ||
@@ -165,3 +165,3 @@ return clsName; | ||
// const displayNoneStyle = createStylesheet(DISPLAY_NONE, 'display: none !important;') | ||
var displayNoneStyle = createStylesheet(DISPLAY_NONE, 'display: none !important;'); | ||
@@ -168,0 +168,0 @@ function updateAppearanceRef(id) { |
{ | ||
"name": "@cicada/render", | ||
"version": "1.1.8-alpha11", | ||
"version": "1.1.8-alpha12", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
375011