Skip to content

Commit

Permalink
logs that did not obey debug flag has been fixed and 22.02.4 released (
Browse files Browse the repository at this point in the history
  • Loading branch information
turtledreams authored Jul 4, 2022
1 parent 8059bd1 commit 3cc88ae
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 60 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 22.02.4
- Fixed logs that did not obey to the 'debug' flag
## 22.02.3
- Added support for userAgentData
- Now heatmap scroll event is recorded when leaving a view
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ or

Countly web SDK is available on CDNJS. Use either

[https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/22.02.3/countly.min.js](https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/22.02.3/countly.min.js)
[https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/22.02.4/countly.min.js](https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/22.02.4/countly.min.js)

or

Expand Down
14 changes: 7 additions & 7 deletions lib/countly.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
// Make sure the code is being run in a browser
// eslint-disable-next-line no-undef
if (typeof (window) === "undefined") {
// eslint-disable-next-line no-console
console.error("Not running in browser");
// TODO: check if logging can be added here, like:
// console.error("Not running in browser");
return;
}

Expand Down Expand Up @@ -175,7 +175,7 @@
*/
Countly.onload = Countly.onload || [];

var SDK_VERSION = "22.02.3";
var SDK_VERSION = "22.02.4";
var SDK_NAME = "javascript_native_web";

var urlParseRE = /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/;
Expand Down Expand Up @@ -4536,8 +4536,8 @@
document.body.appendChild(loader);
}
catch (e) {
// eslint-disable-next-line no-console
console.error("showLoader, Body is not loaded for loader to append: " + e);
// TODO: check if logging can be added here like:
// console.error("showLoader, Body is not loaded for loader to append: " + e);
}
};
}
Expand Down Expand Up @@ -4581,8 +4581,8 @@
data = JSON.parse(data);
}
catch (e) {
// eslint-disable-next-line no-console
console.error("deserialize, Could not parse the file:[" + data + "], error: " + e);
// TODO: check if logging can be added here like:
// console.error("deserialize, Could not parse the file:[" + data + "], error: " + e);
}

return data;
Expand Down
Loading

0 comments on commit 3cc88ae

Please sign in to comment.