Skip to content

Commit

Permalink
🐛 dynamic head script should be append to qiankun head (#2181)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuitos authored Jul 12, 2022
1 parent 9f34550 commit 1be8990
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sandbox/patchers/dynamicAppend/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ function getOverwrittenAppendChildOrInsertBefore(opts: {
return rawDOMAppendOrInsertBefore.call(this, element, refChild) as T;
}

const mountDOM = appWrapperGetter();
const appWrapper = appWrapperGetter();
const mountDOM = target === 'head' ? getAppWrapperHeadElement(appWrapper) : appWrapper;

const { fetch } = frameworkConfiguration;
const referenceNode = mountDOM.contains(refChild) ? refChild : null;

Expand Down

1 comment on commit 1be8990

@vercel
Copy link

@vercel vercel bot commented on 1be8990 Jul 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.