promogame-player 1.0.3 → 1.0.5
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.
|
@@ -7386,9 +7386,9 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7386
7386
|
variables: { id: e, zaloAppId: window == null ? void 0 : window.APP_ID },
|
|
7387
7387
|
skip: !(e || window != null && window.APP_ID)
|
|
7388
7388
|
}), [w, O] = qr.useState(!v), [D] = $n(Mu, { client: b }), [k] = $n(Pu, { client: b });
|
|
7389
|
-
Vr(() => {
|
|
7390
|
-
window
|
|
7391
|
-
}, [d]), Vr(() => {
|
|
7389
|
+
Vr(() => (window.__PROMOGAME_API_URL = r, window != null && window.APP_ID && (window.ZaloMiniAppSDK = d), () => {
|
|
7390
|
+
window.ZaloMiniAppSDK = null;
|
|
7391
|
+
}), [d, r]), Vr(() => {
|
|
7392
7392
|
e && (window.__PROMOGAME_CAMPAIGN_ID = e), v && (async () => {
|
|
7393
7393
|
var J, j, U;
|
|
7394
7394
|
if (!w && window)
|
package/dist/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { UnityMetricsInfo } from 'react-unity-webgl/distribution/types/unity-met
|
|
|
3
3
|
declare global {
|
|
4
4
|
interface Window {
|
|
5
5
|
APP_ID: string;
|
|
6
|
+
__PROMOGAME_API_URL: string;
|
|
6
7
|
__PROMOGAME_EXTERNAL_ACCESS_TOKEN: string;
|
|
7
8
|
__PROMOGAME_CAMPAIGN_ID: string;
|
|
8
9
|
__PROMOGAME_ERROR_CODE?: string;
|