DOn't use includes to make IE happy and avoid Polyfill

This commit is contained in:
Sergio Crisostomo 2017-11-08 10:14:08 +01:00
parent cd92d87821
commit 236e0bfd99

View file

@ -113,7 +113,7 @@ export const formatDateLabels = (function() {
}); });
return { return {
label: label, label: label,
type: component.includes('yy') ? 'year' : 'month' type: component.indexOf('yy') != -1 ? 'year' : 'month'
}; };
}); });
return { return {