mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 23:20:46 +00:00
Update regex to grab Chrome version.
This commit is contained in:
parent
0b6c71f688
commit
e26eda5754
1 changed files with 5 additions and 9 deletions
|
@ -34,16 +34,7 @@
|
|||
* @param payload a function to call with (require, exports, module) params
|
||||
*/
|
||||
|
||||
// WORKAROUND: Accent keys and Korean keys don't work in Chrome >53.
|
||||
// https://github.com/ajaxorg/ace/issues/3045
|
||||
var isChrome53PlusMatched = navigator.userAgent.match(/Chrome\/(.*?)(.|\s+|$)/);
|
||||
var isChrome53Plus = false;
|
||||
if (isChrome53PlusMatched) {
|
||||
isChrome53Plus = isChrome53PlusMatched[1] >= 53;
|
||||
}
|
||||
|
||||
(function() {
|
||||
|
||||
var ACE_NAMESPACE = "ace";
|
||||
|
||||
var global = (function() { return this; })();
|
||||
|
@ -1927,6 +1918,11 @@ var lang = require("../lib/lang");
|
|||
var BROKEN_SETDATA = useragent.isChrome < 18;
|
||||
var USE_IE_MIME_TYPE = useragent.isIE;
|
||||
|
||||
// WORKAROUND: Accent keys and Korean keys don't work in Chrome >53.
|
||||
// https://github.com/ajaxorg/ace/issues/3045
|
||||
var chromeVersion = navigator.userAgent.match(/Chrome\/(\d*)/)[1];
|
||||
var isChrome53Plus = (chromeVersion >= 53);
|
||||
|
||||
var TextInput = function(parentNode, host) {
|
||||
var text = dom.createElement("textarea");
|
||||
text.className = "ace_text-input";
|
||||
|
|
Loading…
Add table
Reference in a new issue