diff --git a/src/sandbox/patchers/dynamicAppend/common.ts b/src/sandbox/patchers/dynamicAppend/common.ts index 7a927ac..85542a1 100644 --- a/src/sandbox/patchers/dynamicAppend/common.ts +++ b/src/sandbox/patchers/dynamicAppend/common.ts @@ -182,7 +182,10 @@ function getOverwrittenAppendChildOrInsertBefore(opts: { (element as HTMLLinkElement).rel === 'stylesheet' && (element as HTMLLinkElement).href; if (linkElementUsingStylesheet) { - const { fetch } = frameworkConfiguration; + const fetch = + typeof frameworkConfiguration.fetch === 'function' + ? frameworkConfiguration.fetch + : frameworkConfiguration.fetch?.fn; stylesheetElement = convertLinkAsStyle( element, (styleElement) => css.process(mountDOM, styleElement, appName),