proper sandbox flags
This commit is contained in:
parent
d629eebcb6
commit
69a3ae39bd
|
@ -20,15 +20,14 @@ const analyticsLocalFile = "shapez_token_123.bin";
|
||||||
|
|
||||||
export class ShapezGameAnalytics extends GameAnalyticsInterface {
|
export class ShapezGameAnalytics extends GameAnalyticsInterface {
|
||||||
get environment() {
|
get environment() {
|
||||||
if (queryParamOptions.sandboxMode) {
|
|
||||||
return "sandbox";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (G_IS_DEV) {
|
if (G_IS_DEV) {
|
||||||
return "dev";
|
return "dev";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (G_IS_STANDALONE) {
|
if (G_IS_STANDALONE) {
|
||||||
|
if (queryParamOptions.sandboxMode) {
|
||||||
|
return "steam-sandbox";
|
||||||
|
}
|
||||||
return "steam";
|
return "steam";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,8 +36,14 @@ export class ShapezGameAnalytics extends GameAnalyticsInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.location.host.indexOf("alpha") >= 0) {
|
if (window.location.host.indexOf("alpha") >= 0) {
|
||||||
|
if (queryParamOptions.sandboxMode) {
|
||||||
|
return "alpha-sandbox";
|
||||||
|
}
|
||||||
return "alpha";
|
return "alpha";
|
||||||
} else {
|
} else {
|
||||||
|
if (queryParamOptions.sandboxMode) {
|
||||||
|
return "beta-sandbox";
|
||||||
|
}
|
||||||
return "beta";
|
return "beta";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue