@jetthai/cuora 1.1.371 → 1.1.372
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/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/src/machine/game_v2_1.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.372](https://github.com/jetthai/cuora-module/compare/v1.1.371...v1.1.372) (2025-08-12)
|
|
6
|
+
|
|
5
7
|
### [1.1.371](https://github.com/jetthai/cuora-module/compare/v1.1.370...v1.1.371) (2025-08-11)
|
|
6
8
|
|
|
7
9
|
### [1.1.370](https://github.com/jetthai/cuora-module/compare/v1.1.369...v1.1.370) (2025-08-07)
|
package/package.json
CHANGED
package/src/machine/game_v2_1.js
CHANGED
|
@@ -613,7 +613,9 @@ export default function (request) {
|
|
|
613
613
|
is_mobile: isMobile === 'mobile' ? 'y' : null,
|
|
614
614
|
lang,
|
|
615
615
|
selected_wallet_type: walletType,
|
|
616
|
-
return_url: returnProviders.includes(providerId)
|
|
616
|
+
return_url: returnProviders.includes(providerId)
|
|
617
|
+
? `${window.location.origin}${context.base}return`
|
|
618
|
+
: window.location.href?.split('?')?.[0], // For providers to return.
|
|
617
619
|
}
|
|
618
620
|
const { type, redirect_url, gameToken, gameHtml, wallet_type } = await request.send(api.playGame(params))
|
|
619
621
|
return { type, gameToken, gameHtml, gameURL: redirect_url, gameWalletType: wallet_type }
|