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

use proper messaging - Needs Safari tester #2463

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ImprovedTube
Copy link
Member

@ImprovedTube ImprovedTube commented Jul 8, 2024

@ImprovedTube ImprovedTube requested a review from raszpl July 8, 2024 09:07
@ImprovedTube ImprovedTube changed the title use proper messaging - Needs Safari tester #2366 @raszpl use proper messaging - Needs Safari tester Jul 8, 2024
Copy link

@4yman-0 4yman-0 left a comment

Choose a reason for hiding this comment

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

Looks Good To Me!

this.element.textContent = message;

document.dispatchEvent(new CustomEvent('it-message-from-extension'));
if (typeof cloneInto == 'function') {
Copy link

Choose a reason for hiding this comment

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

Where is cloneInto defined?

document.addEventListener('it-message-from-youtube', function () {
var provider = document.querySelector('#it-messages-from-youtube');
document.addEventListener('it-message-from-youtube', function (message) {
message = message.detail;
Copy link

Choose a reason for hiding this comment

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

Suggested change
message = message.detail;
const detail = message.detail;

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.

3 participants