Skip to content

Commit 2aa358e

Browse files
committed
fixed an issue with not calling the callback
1 parent 3b61206 commit 2aa358e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dist/breinify-api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15337,7 +15337,8 @@ dependencyScope.jQuery = $;;
1533715337
var _self = this;
1533815338

1533915339
if (_self.resolvedGeoLocation) {
15340-
return _self.geoLocation;
15340+
callback(_self.geoLocation);
15341+
return;
1534115342
}
1534215343

1534315344
var geo = navigator.geolocation;

dist/breinify-api.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/BreinifyUser.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@
102102
var _self = this;
103103

104104
if (_self.resolvedGeoLocation) {
105-
return _self.geoLocation;
105+
callback(_self.geoLocation);
106+
return;
106107
}
107108

108109
var geo = navigator.geolocation;

0 commit comments

Comments
 (0)