Skip to content

Commit

Permalink
heatmap fix (lint) (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
turtledreams authored May 11, 2022
1 parent d1f65f2 commit 8f5b4e8
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 54 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 22.02.1
- Fixed a bug where heatmap files were not loading

## 22.02.0
- !! Major breaking change !! Device ID provided during the init will be ignored if a device ID was provided previously
- Added a new init time flag which erases the previously stored device ID. This allows to set new device ID during init
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.0/countly.min.js](https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/22.02.0/countly.min.js)
[https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/22.02.1/countly.min.js](https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/22.02.1/countly.min.js)

or

Expand Down
18 changes: 9 additions & 9 deletions lib/countly.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
*/
Countly.onload = Countly.onload || [];

var SDK_VERSION = "22.02.0";
var SDK_VERSION = "22.02.1";
var SDK_NAME = "javascript_native_web";

var urlParseRE = /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/;
Expand Down Expand Up @@ -4258,15 +4258,15 @@
var loaded;
fileRef.setAttribute(attr, type);
fileRef.setAttribute(src, data);
var callbackFunction = function() {
if (!loaded) {
callback();
}
loaded = true;
};
if (callback) {
fileRef.onreadystatechange = function() {
fileRef.onload = function() {
if (!loaded) {
callback();
}
loaded = true;
};
};
fileRef.onreadystatechange = callbackFunction();
fileRef.onload = callbackFunction();
}
document.getElementsByTagName("head")[0].appendChild(fileRef);
}
Expand Down
Loading

0 comments on commit 8f5b4e8

Please sign in to comment.