Update home.tsx

This commit is contained in:
dockersky 2023-04-02 17:43:59 +08:00 committed by GitHub
parent 5bf6496b21
commit 6be225bcde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -650,8 +650,8 @@ const isWorkWechat = () => {
// 判断ua和微信浏览器的标识头是否匹配
if (
ua.match(/micromessenger/i) == "micromessenger" &&
ua.match(/wxwork/i) == "wxwork"
/micromessenger/i.test(ua) &&
/wxwork/i.test(ua)
) {
return true;
} else {