00:00:00
js 判断 tiktok APP 内环境
本来以为关键字是==tiktok==,没想到是...
javascript
const isTikTokEnvironment = () => {
const userAgent = window.navigator.userAgent.toLowerCase();
return userAgent.includes("bytedance") || userAgent.includes("bytelocale");
};