@beta-gamer/react-native 0.1.12 → 0.1.18
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -203,7 +203,7 @@ function GameWebView({ game, style }) {
|
|
|
203
203
|
if (session.game !== game) return null;
|
|
204
204
|
const initScript = `
|
|
205
205
|
window.__BG_TOKEN__ = ${JSON.stringify(token)};
|
|
206
|
-
window.
|
|
206
|
+
window.postMessage(JSON.stringify({ type: 'bg:init', token: ${JSON.stringify(token)} }), '*');
|
|
207
207
|
true;
|
|
208
208
|
`;
|
|
209
209
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -162,7 +162,7 @@ function GameWebView({ game, style }) {
|
|
|
162
162
|
if (session.game !== game) return null;
|
|
163
163
|
const initScript = `
|
|
164
164
|
window.__BG_TOKEN__ = ${JSON.stringify(token)};
|
|
165
|
-
window.
|
|
165
|
+
window.postMessage(JSON.stringify({ type: 'bg:init', token: ${JSON.stringify(token)} }), '*');
|
|
166
166
|
true;
|
|
167
167
|
`;
|
|
168
168
|
return /* @__PURE__ */ jsx4(
|