mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-11 02:36:52 +01:00
Tighten check for detecting if Moment is installed (#6113)
This commit is contained in:
@@ -18,7 +18,7 @@ var FORMATS = {
|
||||
year: 'YYYY'
|
||||
};
|
||||
|
||||
adapters._date.override(moment ? {
|
||||
adapters._date.override(typeof moment === 'function' ? {
|
||||
_id: 'moment', // DEBUG ONLY
|
||||
|
||||
formats: function() {
|
||||
|
||||
Reference in New Issue
Block a user