diff --git a/src/sandbox/patchers/dynamicAppend/common.ts b/src/sandbox/patchers/dynamicAppend/common.ts index 969b76b..e4e1677 100644 --- a/src/sandbox/patchers/dynamicAppend/common.ts +++ b/src/sandbox/patchers/dynamicAppend/common.ts @@ -144,7 +144,7 @@ function getOverwrittenAppendChildOrInsertBefore(opts: { return function appendChildOrInsertBefore( this: HTMLHeadElement | HTMLBodyElement, newChild: T, - refChild?: Node | null, + refChild: Node | null = null, ) { let element = newChild as any; const { rawDOMAppendOrInsertBefore, isInvokedByMicroApp, containerConfigGetter } = opts;