Skip to content

Commit

Permalink
fix(css-resource): ensure only global styles get injected globally
Browse files Browse the repository at this point in the history
Fixes #304
  • Loading branch information
cyantree committed Aug 26, 2017
1 parent 7cc90cf commit 5513a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/css-resource.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5513a36

Please sign in to comment.