Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-packages
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
许振钊
ydl-packages
Commits
a030cf0d
Commit
a030cf0d
authored
Sep 13, 2023
by
zhengxiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增淘宝UA
parent
d59763b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
Utils.ts
packages/toolkit/src/Utils/Utils.ts
+1
-1
No files found.
packages/toolkit/src/Utils/Utils.ts
View file @
a030cf0d
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment