fix react-slick bug via adding matchMedia polyfill

pull/140/head
afc163 10 years ago
parent b6f34c5dde
commit 315e61a33d

@ -1,5 +1,15 @@
require('./style/index.less');
// matchMedia polyfill for
// https://github.com/WickyNilliams/enquire.js/issues/82
window.matchMedia = window.matchMedia || function() {
return {
matches : false,
addListener : function() {},
removeListener: function() {}
};
};
var antd = {
Affix: require('./components/affix'),
Datepicker: require('./components/datepicker'),

Loading…
Cancel
Save