Skip to content

Commit

Permalink
🐛 fix the document.body returns undefined if we load qiankun in head …
Browse files Browse the repository at this point in the history
…script (umijs#1045)
  • Loading branch information
kuitos committed Nov 3, 2020
1 parent 3f9f843 commit 6f1c987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sandbox/patchers/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const arrayify = <T>(list: CSSRuleList | any[]) => {
return [].slice.call(list, 0) as T[];
};

const rawDocumentBodyAppend = document.body.appendChild;
const rawDocumentBodyAppend = HTMLBodyElement.prototype.appendChild;

export class ScopedCSS {
private static ModifiedTag = 'Symbol(style-modified-qiankun)';
Expand Down

0 comments on commit 6f1c987

Please sign in to comment.