Skip to content

Commit

Permalink
Fixing device id parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ar2rsawseen committed Sep 7, 2018
1 parent a0b1369 commit f345379
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "countly-sdk-web",
"version": "18.04.0",
"version": "18.08.2",
"description": "Countly Web SDK",
"main": "lib/countly.js",
"moduleType": "globals",
Expand Down
7 changes: 5 additions & 2 deletions lib/countly.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"use strict";
/** @lends Countly */
Countly = Countly || {};
var SDK_VERSION = "18.08";
var SDK_VERSION = "18.08.2";
var SDK_NAME = "javascript_native_web";

var inited = false,
Expand Down Expand Up @@ -2152,7 +2152,10 @@
try {
data = JSON.parse(data);
}
catch (e) { data = null; }
catch (e) {
//it means data is not json,
//dont do anything
}

return data;

Expand Down
Loading

0 comments on commit f345379

Please sign in to comment.