summaryrefslogtreecommitdiff
path: root/src/static/js/ace2_inner.js
diff options
context:
space:
mode:
authorPeter 'Pita' Martischka <petermartischka@googlemail.com>2013-02-10 21:21:22 +0000
committerPeter 'Pita' Martischka <petermartischka@googlemail.com>2013-02-10 21:21:22 +0000
commit1fbd408e82dcaa6e26d9f12704fd196339e4a080 (patch)
tree61925f9eb6b0d205c2d59441b1a78aa585ff8884 /src/static/js/ace2_inner.js
parent500c451ba1b49e16f642599ff403b219b747e794 (diff)
downloadetherpad-lite-1fbd408e82dcaa6e26d9f12704fd196339e4a080.zip
replaced opera regex check with jquery browser check
Diffstat (limited to 'src/static/js/ace2_inner.js')
-rw-r--r--src/static/js/ace2_inner.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js
index 4113a117..5c71cb1d 100644
--- a/src/static/js/ace2_inner.js
+++ b/src/static/js/ace2_inner.js
@@ -4652,7 +4652,7 @@ function Ace2Inner(){
{
$(document).on("keydown", handleKeyEvent);
// Hack for Opera to stop it firing twice on events
- if (/Opera[\/\s](\d+\.\d+)/.test(!navigator.userAgent)){
+ if ($.browser.opera){
$(document).on("keypress", handleKeyEvent);
}
$(document).on("keyup", handleKeyEvent);