mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Update savegame imports
This commit is contained in:
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…
Reference in New Issue
Block a user