Skip to content

Commit 8b723fb

Browse files
author
shengyonggen
committed
修改新版本引入的json小写的问题
1 parent adeeca2 commit 8b723fb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ saEvent.send = function(p, callback) {
17351735
function setAppInfo(data){
17361736
app_info = data;
17371737
if(_.isJSONString(app_info)){
1738-
app_info = json.parse(app_info);
1738+
app_info = JSON.parse(app_info);
17391739
}
17401740
if(todo){
17411741
todo(data);
@@ -1746,7 +1746,7 @@ saEvent.send = function(p, callback) {
17461746
if(typeof window.SensorsData_APP_JS_Bridge === 'object' && window.SensorsData_APP_JS_Bridge.sensorsdata_call_app){
17471747
app_info = SensorsData_APP_JS_Bridge.sensorsdata_call_app();
17481748
if(_.isJSONString(app_info)){
1749-
app_info = json.parse(app_info);
1749+
app_info = JSON.parse(app_info);
17501750
}
17511751
}
17521752
}

src/sensorsdata.full.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,7 +2339,7 @@ saEvent.send = function(p, callback) {
23392339
function setAppInfo(data){
23402340
app_info = data;
23412341
if(_.isJSONString(app_info)){
2342-
app_info = json.parse(app_info);
2342+
app_info = JSON.parse(app_info);
23432343
}
23442344
if(todo){
23452345
todo(data);
@@ -2350,7 +2350,7 @@ saEvent.send = function(p, callback) {
23502350
if(typeof window.SensorsData_APP_JS_Bridge === 'object' && window.SensorsData_APP_JS_Bridge.sensorsdata_call_app){
23512351
app_info = SensorsData_APP_JS_Bridge.sensorsdata_call_app();
23522352
if(_.isJSONString(app_info)){
2353-
app_info = json.parse(app_info);
2353+
app_info = JSON.parse(app_info);
23542354
}
23552355
}
23562356
}

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)