Skip to content

Commit 817b174

Browse files
author
shengyonggen
committed
可配置callback超时
1 parent c4ea231 commit 817b174

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

sensorsdata.min.js

Lines changed: 2 additions & 2 deletions
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
@@ -1530,7 +1530,7 @@ sd.sendState.stateInfo.prototype.start = function(){
15301530
delete me;
15311531
}
15321532
}
1533-
setTimeout(callAndDelete, 1000);
1533+
setTimeout(callAndDelete, sd.para.callback_timeout);
15341534
this.img.onload = function(e) {
15351535
this.onload = null;
15361536
++me.sendState._complete;

src/sensorsdata.full.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if(typeof JSON!=='object'){JSON={}}(function(){'use strict';var rx_one=/^[\],:{}
7575
search: null,
7676
social: null
7777
},
78-
78+
callback_timeout: 1500,
7979
is_track_device_id: false,
8080

8181
use_app_track: false
@@ -1648,7 +1648,7 @@ sd.sendState.stateInfo.prototype.start = function(){
16481648
delete me;
16491649
}
16501650
}
1651-
setTimeout(callAndDelete, 1000);
1651+
setTimeout(callAndDelete, sd.para.callback_timeout);
16521652
this.img.onload = function(e) {
16531653
this.onload = null;
16541654
++me.sendState._complete;

src/sensorsdata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ try{
8080
search: null,
8181
social: null
8282
},
83-
83+
callback_timeout: 1500,
8484
is_track_device_id: false,
8585

8686
use_app_track: false

vtrack.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)