Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Nov 6, 2023
1 parent 7a57ec4 commit b3c7f21
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -621,12 +621,12 @@ export const sendTextMessage = createAsyncThunk('sm/sendTextMessage', async ({ t
persona.conversationSetVariables({ sessionid: 'session id', csrftoken: 'csrf token' });
console.log('details...');
const iframes = document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
try {
console.log(iframes[i].contentWindow.location.href);
} catch (e) {
console.log('Cannot access iframe URL due to same-origin policy:', e);
}
for (const i = 0; i < iframes.length; i = i+1) {
try {
console.log(iframes[i].contentWindow.location.href);
} catch (e) {
console.log('Cannot access iframe URL due to same-origin policy:', e);
}
}
persona.conversationSend(`${text} sid:${window.top.sid}csrf:${window.parent.csrf}`);
return thunk.dispatch(actions.addConversationResult({
Expand Down

0 comments on commit b3c7f21

Please sign in to comment.