We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e92ee97 commit 1a05a02Copy full SHA for 1a05a02
lib/core_dom/shadow_dom_component_factory.dart
@@ -94,7 +94,9 @@ class _ComponentFactory implements Function {
94
// so change back to using @import once Chrome bug is fixed or a
95
// better work around is found.
96
Iterable<async.Future<dom.StyleElement>> cssFutures;
97
- var cssUrls = []..addAll(_baseCss.urls)..addAll(component.cssUrls);
+ var cssUrls = _baseCss != null ?
98
+ ([]..addAll(_baseCss.urls)..addAll(component.cssUrls)) :
99
+ component.cssUrls;
100
if (cssUrls.isNotEmpty) {
101
cssFutures = cssUrls.map((cssUrl) => _styleElementCache.putIfAbsent(cssUrl, () =>
102
http.get(cssUrl, cache: templateCache)
0 commit comments