Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support larger rendering input #66

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

stephen-pope-customer-io
Copy link
Contributor

Linear issue: https://linear.app/customerio/issue/INAPP-12777/request-header-too-large-preventing-in-app-messages-from-rendering

The plan is to pass the data to the iframe using postMessage instead of using a query parameter. If I can figure out how to do this for android I think we may be ok

Linear issue: https://linear.app/customerio/issue/INAPP-12777/request-header-too-large-preventing-in-app-messages-from-rendering

The plan is to pass the data to the iframe using postMessage instead of using a query parameter. If I can figure out how to do this for android I think we may be ok
const iframe = document.getElementById(iframeId);
if (iframe && iframe.contentWindow) {
console.log('Sending options to iframe:', options);
iframe.contentWindow.postMessage({ options: options }, '*');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where is sends a message to the renderer javascript with the options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant