-
Notifications
You must be signed in to change notification settings - Fork 28
Add new Messaging format to Click to Load #546
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
Add new Messaging format to Click to Load #546
Conversation
…w messaging layer wrapper
2237327
to
77f1568
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a pass of the click-to-load.js changes @franfaccin. Some suggestions but mostly they look pretty good 👍 . I will leave the sendMessageWrapper.js to Shane.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@franfaccin this is great! I've tried to reflect what we spoke about in our call - let me know if you think I missed anything.
Here's the branch I made in our call for reference: https://github.com/duckduckgo/content-scope-scripts/compare/shane/pr-review
…portConfig. Move messagingContext creation to ContentFeature. Rename lazy.messaging to ctl.messaging. Clean up request() code to handle getYouTubeVideoDetails requests better. Clean up the code.
…ickToLoadMessagingTransport to match sendMessage() messages format
Fix return type. Move `displayClickToLoadPlaceholders` subscribe up to avoid race conditions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've replied to the comments and updated the PR accordingly. It's ready for another review :)
6519c27
to
8dc23c2
Compare
579b657
to
0caacb2
Compare
@franfaccin - I've approved this now - thanks for working through everyone's feedback ❤️! If you consider this complete, please merge when you are ready 💪🏻 Just a reminder too that we're attempting to keep |
Remove sendMessage calls from click-to-load.js and replace it with new messaging layer wrapper