mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-27 05:53:10 +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 logger from 'services/logger';
|
||||
|
||||
export default {
|
||||
/**
|
||||
@ -23,7 +24,12 @@ export default {
|
||||
webFont.load({
|
||||
classes: false,
|
||||
active: resolve,
|
||||
inactive: resolve, // TODO: may be we should track such cases
|
||||
inactive() {
|
||||
logger.warn('Failed loading the font', {
|
||||
families
|
||||
});
|
||||
resolve();
|
||||
},
|
||||
timeout: 2000,
|
||||
...config
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user