Comparing version 0.0.7 to 0.0.8
@@ -67,3 +67,2 @@ "use strict"; | ||
mods.forEach(function (mod) { | ||
var id = "react-css-".concat(mod, "-").concat(groupKey); | ||
var url = (0, _getObjectValue["default"])(map, [mod]); | ||
@@ -79,10 +78,8 @@ url = url ? cdn + url : mod; | ||
if ((0, _winDoc.win)().__null) { | ||
console.log("<link id=\"".concat(id, "\" rel=\"stylesheet\" type=\"text/css\" href=\"").concat(url, "\">")); | ||
console.log("<link rel=\"stylesheet\" type=\"text/css\" href=\"".concat(url, "\">")); | ||
} else { | ||
var cssDom = _cssQuerySelector["default"].one("#" + id); | ||
var cssDom = _cssQuerySelector["default"].one("[href=\"".concat(url, "\"]")); | ||
if (!cssDom) { | ||
(0, _createEl.css)()()(url, { | ||
id: id | ||
}); | ||
(0, _createEl.css)()()(url); | ||
} | ||
@@ -89,0 +86,0 @@ } |
@@ -54,3 +54,2 @@ import { css } from "create-el"; | ||
mods.forEach(function (mod) { | ||
var id = "react-css-".concat(mod, "-").concat(groupKey); | ||
var url = get(map, [mod]); | ||
@@ -66,10 +65,8 @@ url = url ? cdn + url : mod; | ||
if (win().__null) { | ||
console.log("<link id=\"".concat(id, "\" rel=\"stylesheet\" type=\"text/css\" href=\"").concat(url, "\">")); | ||
console.log("<link rel=\"stylesheet\" type=\"text/css\" href=\"".concat(url, "\">")); | ||
} else { | ||
var cssDom = query.one("#" + id); | ||
var cssDom = query.one("[href=\"".concat(url, "\"]")); | ||
if (!cssDom) { | ||
css()()(url, { | ||
id: id | ||
}); | ||
css()()(url); | ||
} | ||
@@ -76,0 +73,0 @@ } |
{ | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"name": "need-css", | ||
@@ -4,0 +4,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8421
183