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>();
41
41
export function fontResource ( input : ( ) => NgtsFontInput , { injector } : { injector ?: Injector } = { } ) {
42
42
return assertInjector ( fontResource , injector , ( ) => {
43
43
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 ;
48
48
}
49
49
50
- const fontData = await loadFontData ( request ) ;
50
+ const fontData = await loadFontData ( params ) ;
51
51
const parsed = parseFontData ( fontData ) ;
52
- cache . set ( request , parsed ) ;
52
+ cache . set ( params , parsed ) ;
53
53
return parsed ;
54
54
} ,
55
55
} ) ;
You can’t perform that action at this time.
0 commit comments