Skip to content

Commit

Permalink
fix(css-shim): apply css vars to global styles
Browse files Browse the repository at this point in the history
Closes #2076
  • Loading branch information
adamdbradley committed Dec 30, 2019
1 parent 599c566 commit 4070312
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/polyfills/css-shim/load-link-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { addGlobalStyle, updateGlobalScopes } from './scope';

export function loadDocument(doc: Document, globalScopes: CSSScope[]) {
loadDocumentStyles(doc, globalScopes);
return loadDocumentLinks(doc, globalScopes);
return loadDocumentLinks(doc, globalScopes).then(() => {
updateGlobalScopes(globalScopes);
});
}

export function startWatcher(doc: Document, globalScopes: CSSScope[]) {
Expand Down

0 comments on commit 4070312

Please sign in to comment.