1 2 3 4 5 6 7 8 9 10 11 12
const self = {} self.isIE = navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0 if (self.isIE) { self.inputEvent = 'textinput' } else { self.inputEvent = 'input' } module.exports = self