mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
proper sandbox flags
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user