aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/browserFixToolkit.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-12-14 12:38:27 +0100
committerNoah Loomans <noahloomans@gmail.com>2016-12-14 12:38:27 +0100
commit819f3dd2088777c4d84a707b4bd62559382f36f5 (patch)
tree6682553cad124471388ec5f84cf6d54a57b31ea3 /public/javascripts/browserFixToolkit.js
parent900366c6d623fde54223f93930d28a84264cbb46 (diff)
fix ie input event
Diffstat (limited to 'public/javascripts/browserFixToolkit.js')
-rw-r--r--public/javascripts/browserFixToolkit.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/public/javascripts/browserFixToolkit.js b/public/javascripts/browserFixToolkit.js
new file mode 100644
index 0000000..fbeab74
--- /dev/null
+++ b/public/javascripts/browserFixToolkit.js
@@ -0,0 +1,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