We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 972f4bf commit 0b1a1d0Copy full SHA for 0b1a1d0
javascript/mixpanel-config.js
@@ -4,7 +4,7 @@ import {
4
defaultServerURL,
5
} from "./mixpanel-constants";
6
7
-import {MixpanelLogger} from "./mixpanel-logger";
+import { MixpanelLogger } from "./mixpanel-logger";
8
9
export class MixpanelConfig {
10
static instance;
@@ -65,10 +65,14 @@ export class MixpanelConfig {
65
}
66
67
getUseIpAddressForGeolocation(token) {
68
- return (
69
- (this._config[token] && this._config[token].useIpAddressForGeolocation) ||
70
- true
71
- );
+ if (
+ this._config[token] &&
+ "useIpAddressForGeolocation" in this._config[token]
+ ) {
72
+ return this._config[token].useIpAddressForGeolocation;
73
+ }
74
+
75
+ return true;
76
77
78
setFlushBatchSize(token, batchSize) {
0 commit comments