|
|
|
@ -83,6 +83,17 @@ export class PlatformWrapperImplElectron extends PlatformWrapperImplBrowser {
|
|
|
|
|
res => {
|
|
|
|
|
logger.log("Got DLC ownership:", res);
|
|
|
|
|
this.dlcs.puzzle = Boolean(res);
|
|
|
|
|
|
|
|
|
|
if (this.dlcs.puzzle && !G_IS_DEV) {
|
|
|
|
|
this.app.gameAnalytics.activateDlc("puzzle").then(
|
|
|
|
|
() => {
|
|
|
|
|
logger.log("Puzzle DLC successfully activated");
|
|
|
|
|
},
|
|
|
|
|
error => {
|
|
|
|
|
logger.error("Failed to activate puzzle DLC:", error);
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
err => {
|
|
|
|
|
logger.error("Failed to get DLC ownership:", err);
|
|
|
|
|