Skip to content

Commit

Permalink
feat: 支持tomas百度老年版本的识别
Browse files Browse the repository at this point in the history
  • Loading branch information
lhyhappy365 authored and harttle committed Jan 7, 2021
1 parent b9702d4 commit 170f63a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ define(function () {
var version = match[1].split('.').map(parseFloat);
return version;
},

// 是否为百度大字版
isTomas: function () {
return /tomas/.test(ua);
},
// Browser
isBaiduBox: function () {
return /baiduboxapp/.test(ua);
Expand Down

0 comments on commit 170f63a

Please sign in to comment.