@rehers/rehers-roleplay-sdk 2.1.2 → 2.1.3
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/package.json +1 -1
- package/roleplay-sdk.js +4 -2
package/package.json
CHANGED
package/roleplay-sdk.js
CHANGED
|
@@ -207,13 +207,15 @@
|
|
|
207
207
|
|
|
208
208
|
function dispatchInitToIframe(token) {
|
|
209
209
|
if (addToScenarioPendingContacts) {
|
|
210
|
-
|
|
210
|
+
var msg = {
|
|
211
211
|
type: "seamless-add-to-scenario-init",
|
|
212
212
|
sessionToken: token,
|
|
213
213
|
publishableKey: publishableKey,
|
|
214
214
|
userId: userId,
|
|
215
215
|
contacts: addToScenarioPendingContacts,
|
|
216
|
-
}
|
|
216
|
+
};
|
|
217
|
+
if (trialUrl) msg.trialUrl = trialUrl;
|
|
218
|
+
sendToIframe(msg);
|
|
217
219
|
} else if (token && pendingContactData) {
|
|
218
220
|
sendToIframe({
|
|
219
221
|
type: "seamless-session-init",
|