Update savegame imports

pull/1415/merge
tobspr 2 years ago
parent 8f6ccc0d67
commit 42112f1660

@ -77,6 +77,30 @@ export class ShapezGameAnalytics extends GameAnalyticsInterface {
);
}
note(action) {
if (this.app.restrictionMgr.isLimitedVersion()) {
fetch(
"https://analytics.shapez.io/campaign/" +
"action_" +
this.environment +
"_" +
action +
"_" +
CURRENT_ABT +
"_" +
this.abtVariant +
"?lpurl=nocontent",
{
method: "GET",
mode: "no-cors",
cache: "no-cache",
referrer: "no-referrer",
credentials: "omit",
}
).catch(err => {});
}
}
/**
* @returns {Promise<void>}
*/

@ -255,6 +255,8 @@ export class MainMenuState extends GameState {
return;
}
this.app.gameAnalytics.note("startimport");
// Create a 'fake' file-input to accept savegames
startFileChoose(".bin").then(file => {
if (file) {
@ -747,6 +749,8 @@ export class MainMenuState extends GameState {
getStandalone.add(() => {
openStandaloneLink(this.app, "shapez_slotlimit");
});
this.app.gameAnalytics.note("slotlimit");
}
onSettingsButtonClicked() {

Loading…
Cancel
Save