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

chore: add error message when using custom iframe without right allow value #190

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nanoander
Copy link

I used @daily-co/daily-js for a POC as a possible replacement of Twilio.
I quickly got it running by using my own <iframe /> (using wrap(), not createFrame()), but I was seeing a message asking to allow mic and camera in the browser, even though the permissions were properly set already.

Screen Shot 2022-08-05 at 11 15 10

I opened the dev tools, but couldn't easily find what was happening.

Screen Shot 2022-08-05 at 11 39 50

Then, comparing my iframe with the one created by createFrame(), I realized my iframe was lacking the allow property with the right permissions.

This PR is a proposal contribution to make the developer's experience more straightforward in cases like this.

@nanoander nanoander force-pushed the add_error_msg_for_custom_iframe_without_allow branch from 7603b67 to 75aa72e Compare August 7, 2022 17:28
@mattieruth
Copy link
Contributor

Thanks for the review AND the patch! We'll get someone to take a look shortly!

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.

2 participants