Add missing G_IS_DEV
This commit is contained in:
parent
424a4b8a61
commit
c3f029d887
|
@ -130,7 +130,7 @@ export class ShapezGameAnalytics extends GameAnalyticsInterface {
|
|||
return this.fetchABVariant().then(() => {
|
||||
setInterval(() => this.sendTimePoints(), 60 * 1000);
|
||||
|
||||
if (this.app.restrictionMgr.isLimitedVersion()) {
|
||||
if (this.app.restrictionMgr.isLimitedVersion() && !G_IS_DEV) {
|
||||
fetch(
|
||||
"https://analytics.shapez.io/campaign/" +
|
||||
this.environment +
|
||||
|
@ -276,6 +276,10 @@ export class ShapezGameAnalytics extends GameAnalyticsInterface {
|
|||
return;
|
||||
}
|
||||
|
||||
if (G_IS_DEV) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.syncKey) {
|
||||
logger.warn("Can not send event due to missing sync key");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue