Permalink
Browse files

fix(css-resource): ensure only global styles get injected globally

Fixes #304
  • Loading branch information...
cyantree committed Aug 26, 2017
1 parent 7cc90cf commit 5513a360e97d6d35167bb608e861d8ed554e99bd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/css-resource.js
View
@@ -67,7 +67,7 @@ class CSSViewEngineHooks {
} else if (FEATURE.scopedCSS) {
let styleNode = DOM.injectStyles(this.css, content, true);
styleNode.setAttribute('scoped', 'scoped');
} else if (!this.owner._alreadyGloballyInjected) {
} else if (this._global && !this.owner._alreadyGloballyInjected) {
DOM.injectStyles(this.css);
this.owner._alreadyGloballyInjected = true;
}

0 comments on commit 5513a36

Please sign in to comment.