🐛 fix the document.body returns undefined if we load qiankun in head script (#1045)

This commit is contained in:
Kuitos 2020-11-03 16:03:10 +08:00 committed by GitHub
parent 986482f213
commit 36c5d44d61

View File

@ -22,7 +22,7 @@ const arrayify = <T>(list: CSSRuleList | any[]) => {
return [].slice.call(list, 0) as T[]; return [].slice.call(list, 0) as T[];
}; };
const rawDocumentBodyAppend = document.body.appendChild; const rawDocumentBodyAppend = HTMLBodyElement.prototype.appendChild;
export class ScopedCSS { export class ScopedCSS {
private static ModifiedTag = 'Symbol(style-modified-qiankun)'; private static ModifiedTag = 'Symbol(style-modified-qiankun)';