Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
fanxuehui
rip
Commits
5b111546
Commit
5b111546
authored
Sep 23, 2019
by
aiduck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
this._blackList
parent
d4761aa6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
package.json
package.json
+1
-1
monitor.js
src/lib/monitor.js
+3
-3
No files found.
package.json
View file @
5b111546
{
"name"
:
"@tuia/rip"
,
"version"
:
"1.2.3-beta"
,
"version"
:
"1.2.3-beta
1
"
,
"description"
:
"Tools for user behavior recording and playback based on rrweb"
,
"main"
:
"dist/index.js"
,
"scripts"
:
{
...
...
src/lib/monitor.js
View file @
5b111546
...
...
@@ -57,8 +57,8 @@ class Monitor {
init
({
system
,
userIdentifier
,
host
=
[],
env
=
"prod"
,
log
=
false
,
path
=
window
.
location
.
hash
,
blackList
=
[]
})
{
let
protocol
=
document
.
location
.
protocol
;
let
realHost
=
window
.
location
.
host
;
_blackList
=
blackList
;
console
.
log
(
'黑名单'
,
_blackList
);
this
.
_blackList
=
blackList
;
console
.
log
(
'黑名单'
,
this
.
_blackList
);
if
(
!
system
||
!
userIdentifier
||
host
.
length
>
0
)
{
console
.
log
(
"system,userIdentifier,host是必传的"
);
}
...
...
@@ -103,7 +103,7 @@ class Monitor {
* 是否存在黑名单中
**/
isExistBlackList
(
path
)
{
_blackList
&&
_blackList
.
map
(
item
=>
{
this
.
_blackList
&&
this
.
_blackList
.
map
(
item
=>
{
if
(
path
.
includes
(
item
)){
return
true
}
...
...
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