🐛 fix the document.body returns undefined if we load qiankun in head script (#1045)
This commit is contained in:
parent
986482f213
commit
36c5d44d61
|
|
@ -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)';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user