Update home.tsx

This commit is contained in:
dockersky
2023-04-02 17:43:59 +08:00
committed by GitHub
parent 5bf6496b21
commit 6be225bcde

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 {