Skip to content

Commit a059a7b

Browse files
author
shengyonggen
committed
增加兼容性异常判断
1 parent 9093f84 commit a059a7b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

sensorsdata.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sdk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3359,7 +3359,7 @@ var heatmap = {
33593359
var path = e._getPath();
33603360
if(_.isArray(path) && (path.length > 0) ){
33613361
for(var i = 0;i<path.length;i++){
3362-
if(path[i].tagName.toLowerCase() === 'a'){
3362+
if(path[i] && path[i].tagName && (path[i].tagName.toLowerCase() === 'a')){
33633363
return path[i];
33643364
}
33653365
}

src/sensorsdata.full.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3471,7 +3471,7 @@ var heatmap = {
34713471
var path = e._getPath();
34723472
if(_.isArray(path) && (path.length > 0) ){
34733473
for(var i = 0;i<path.length;i++){
3474-
if(path[i].tagName.toLowerCase() === 'a'){
3474+
if(path[i] && path[i].tagName && (path[i].tagName.toLowerCase() === 'a')){
34753475
return path[i];
34763476
}
34773477
}

vtrack.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)