mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-02-05 16:40:09 +05:30
Log the cases, when the font was not loaded for the user
This commit is contained in:
parent
af4ddd5562
commit
25b60c1fac
@ -1,4 +1,5 @@
|
|||||||
import webFont from 'webfontloader';
|
import webFont from 'webfontloader';
|
||||||
|
import logger from 'services/logger';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
/**
|
/**
|
||||||
@ -23,7 +24,12 @@ export default {
|
|||||||
webFont.load({
|
webFont.load({
|
||||||
classes: false,
|
classes: false,
|
||||||
active: resolve,
|
active: resolve,
|
||||||
inactive: resolve, // TODO: may be we should track such cases
|
inactive() {
|
||||||
|
logger.warn('Failed loading the font', {
|
||||||
|
families
|
||||||
|
});
|
||||||
|
resolve();
|
||||||
|
},
|
||||||
timeout: 2000,
|
timeout: 2000,
|
||||||
...config
|
...config
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user