Allow changing abt variant

This commit is contained in:
tobspr 2022-06-16 19:27:20 +02:00
parent 2a63d7474c
commit e2460edb32
1 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,11 @@ export class ShapezGameAnalytics extends GameAnalyticsInterface {
return;
}
window.setAbt = abt => {
this.app.storage.writeFileAsync("shapez_" + CURRENT_ABT + ".bin", String(abt));
window.location.reload();
};
// Retrieve sync key from player
return this.fetchABVariant().then(() => {
setInterval(() => this.sendTimePoints(), 60 * 1000);