👽 fix typescript typing error (#1120)
This commit is contained in:
parent
1e1bacd37b
commit
dc8792c1ad
|
|
@ -182,7 +182,10 @@ function getOverwrittenAppendChildOrInsertBefore(opts: {
|
||||||
(element as HTMLLinkElement).rel === 'stylesheet' &&
|
(element as HTMLLinkElement).rel === 'stylesheet' &&
|
||||||
(element as HTMLLinkElement).href;
|
(element as HTMLLinkElement).href;
|
||||||
if (linkElementUsingStylesheet) {
|
if (linkElementUsingStylesheet) {
|
||||||
const { fetch } = frameworkConfiguration;
|
const fetch =
|
||||||
|
typeof frameworkConfiguration.fetch === 'function'
|
||||||
|
? frameworkConfiguration.fetch
|
||||||
|
: frameworkConfiguration.fetch?.fn;
|
||||||
stylesheetElement = convertLinkAsStyle(
|
stylesheetElement = convertLinkAsStyle(
|
||||||
element,
|
element,
|
||||||
(styleElement) => css.process(mountDOM, styleElement, appName),
|
(styleElement) => css.process(mountDOM, styleElement, appName),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user