Skip to content

Commit 8388914

Browse files
peterkroonmarijnh
authored andcommitted
Add Opera Mobile UA to the mobile list
Add Opera Mobile UA to the mobile list.
1 parent 48c2e8e commit 8388914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ window.CodeMirror = (function() {
2222

2323
var ios = /AppleWebKit/.test(navigator.userAgent) && /Mobile\/\w+/.test(navigator.userAgent);
2424
// This is woefully incomplete. Suggestions for alternative methods welcome.
25-
var mobile = ios || /Android|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent);
25+
var mobile = ios || /Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent);
2626
var mac = ios || /Mac/.test(navigator.platform);
2727
var windows = /windows/i.test(navigator.platform);
2828

0 commit comments

Comments
 (0)