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

Improve navigator.share example #227

Merged
merged 2 commits into from
Jul 17, 2024
Merged

Improve navigator.share example #227

merged 2 commits into from
Jul 17, 2024

Conversation

mrienstra
Copy link
Contributor

Better error handling, was failing silently when not supported.

New version is similar to code example at https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare#examples

This example is linked to from:

(and possibly more, I didn't bother searching) and hosted at https://mdn.github.io/dom-examples/web-share/

If this PR is accepted, I'll open another that applies the same changes to the "live example" shown at https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share#examples

mrienstra and others added 2 commits September 16, 2023 18:52
Better error handling, was failing silently when not supported.

New version is similar to code example at https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare#examples
@bsmth bsmth requested a review from a team as a code owner July 17, 2024 09:49
@bsmth bsmth requested review from pepelsbey and removed request for a team July 17, 2024 09:49
Copy link
Member

@pepelsbey pepelsbey 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! Thank you :) And sorry it took a while to review 😅

@pepelsbey pepelsbey merged commit 878a5da into mdn:main Jul 17, 2024
3 checks passed
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