Skip to content

Commit

Permalink
Added support for google fonts 'com/css' extension
Browse files Browse the repository at this point in the history
  • Loading branch information
sergaks committed Dec 16, 2020
1 parent 20bcf3d commit ecab06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pixi-webfont-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class WebfontLoaderPlugin implements ILoaderPlugin
}
static use(resource: LoaderResource, next: (...params: any[]) => any): void
{
if (resource.extension !== 'css')
if (!resource.extension.endsWith('css'))
{
next();

Expand Down

0 comments on commit ecab06c

Please sign in to comment.