aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/browserFixToolkit.js
diff options
context:
space:
mode:
authorBuildTools <Noah Loomans>2017-01-07 22:37:16 +0100
committerBuildTools <Noah Loomans>2017-01-07 22:37:16 +0100
commit549364fb691f7f092223e186033a8138c3ead2fd (patch)
treebec1b0bbc972a08ff69464853190044780eb667d /public/javascripts/browserFixToolkit.js
parent4e8da42863406764a659a7337e774ad216d356c9 (diff)
parenta5238353ab86923bb3911e0bf2886ebcb53dfbd2 (diff)
Merge branch 'beta'
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