File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
libs/soba/loaders/src/lib Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ const cache = new Map<NgtsFontInput, Font>();
4141export function fontResource ( input : ( ) => NgtsFontInput , { injector } : { injector ?: Injector } = { } ) {
4242 return assertInjector ( fontResource , injector , ( ) => {
4343 return resource ( {
44- request : input ,
45- loader : async ( { request } ) => {
46- if ( cache . has ( request ) ) {
47- return cache . get ( request ) as Font ;
44+ params : input ,
45+ loader : async ( { params } ) => {
46+ if ( cache . has ( params ) ) {
47+ return cache . get ( params ) as Font ;
4848 }
4949
50- const fontData = await loadFontData ( request ) ;
50+ const fontData = await loadFontData ( params ) ;
5151 const parsed = parseFontData ( fontData ) ;
52- cache . set ( request , parsed ) ;
52+ cache . set ( params , parsed ) ;
5353 return parsed ;
5454 } ,
5555 } ) ;
You can’t perform that action at this time.
0 commit comments