Commit a030cf0d by zhengxiao

feat: 新增淘宝UA

parent d59763b2
...@@ -5,7 +5,7 @@ export class Utils { ...@@ -5,7 +5,7 @@ export class Utils {
return /MicroMessenger/i.test(window.navigator.userAgent) return /MicroMessenger/i.test(window.navigator.userAgent)
} }
static isAlipay(): boolean { static isAlipay(): boolean {
return /AlipayClient/i.test(window.navigator.userAgent) return /AlipayClient/i.test(window.navigator.userAgent) || /AliApp/i.test(window.navigator.userAgent)
} }
static getCookie(key: string): string | null { static getCookie(key: string): string | null {
return Cookies.get(key) || null return Cookies.get(key) || null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment