Log the cases, when the font was not loaded for the user

This commit is contained in:
SleepWalker 2017-03-29 07:50:38 +03:00
parent af4ddd5562
commit 25b60c1fac

View File

@ -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
})