@opexa/portal-sdk 0.44.8 → 0.44.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -8631,7 +8631,6 @@ var Sdk = class {
8631
8631
  }
8632
8632
  async createGameSession(input) {
8633
8633
  const id = input.id ?? objectId.ObjectId.generate(ObjectType.GameSession).toString();
8634
- const withHomepageUrl = input.homepageUrl ?? true;
8635
8634
  if (input.provider) {
8636
8635
  const res = NEW_GAME_PROVIDERS.includes(input.provider) ? await this.walletService.createGameSession({
8637
8636
  input: {
@@ -8642,7 +8641,7 @@ var Sdk = class {
8642
8641
  input: {
8643
8642
  id,
8644
8643
  game: input.reference,
8645
- homepageUrl: !withHomepageUrl || typeof window === "undefined" ? void 0 : window.location.origin
8644
+ homepageUrl: typeof window === "undefined" ? void 0 : input.homepageUrl
8646
8645
  }
8647
8646
  });
8648
8647
  return res.ok ? { ok: true, data: { id } } : res;