diff --git a/src/embed-webfonts.ts b/src/embed-webfonts.ts index 4c11f9bf..42c73da6 100644 --- a/src/embed-webfonts.ts +++ b/src/embed-webfonts.ts @@ -37,7 +37,7 @@ async function embedFonts(data: Metadata, options: Options): Promise { return fetchAsDataURL<[string, string]>( url, - options.fetchFontRequestInit, + options.fetchRequestInit, ({ result }) => { cssText = cssText.replace(loc, `url(${result})`) return [loc, result] diff --git a/src/types.ts b/src/types.ts index a2d64a24..b511363f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -91,10 +91,4 @@ export interface Options { * */ fetchRequestInit?: RequestInit - /** - * - *the second parameter of window.fetch (Promise fetch(input[, init])) - * This would be used for fonts, thereby making it different from the Image urls of the parent project. - */ - fetchFontRequestInit?: RequestInit }