antd-mobile
Version:
<div align="center">
11 lines (10 loc) • 450 B
JavaScript
require("./global.css");
var _canUseDom = require("../utils/can-use-dom");
if (_canUseDom.canUseDom) {
// Make sure the `:active` CSS selector of `button` and `a` take effect
// See: https://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari
document.addEventListener('touchstart', () => {}, true);
}
// Only for debugging. Must COMMENT this line before commit:
// import './css-vars-patch.less'
;