Skip to content

Commit 170f63a

Browse files
lhyhappy365harttle
authored andcommitted
feat: 支持tomas百度老年版本的识别
1 parent b9702d4 commit 170f63a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ define(function () {
6363
var version = match[1].split('.').map(parseFloat);
6464
return version;
6565
},
66-
66+
// 是否为百度大字版
67+
isTomas: function () {
68+
return /tomas/.test(ua);
69+
},
6770
// Browser
6871
isBaiduBox: function () {
6972
return /baiduboxapp/.test(ua);

0 commit comments

Comments
 (0)