hexo/node_modules/ali-oss/lib/common/utils/isDingTalk.ts

7 lines
173 B
TypeScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
export function isDingTalk() {
if (process.browser && window.navigator.userAgent.toLowerCase().includes('aliapp(dingtalk')) {
return true;
}
return false;
}