-
Notifications
You must be signed in to change notification settings - Fork 156
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
feat: massive docs rewrite #473
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for webmonetization-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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) Support content review:
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.
ii) Experiment w/ WM - How payments work content review:
window.onmonetization = function () { | ||
alert('This page supports Web Monetization.') | ||
} |
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.
And this will get called on each monetization
event, so we should not recommend this event as this use case.
Recommended way to detect WM support is following:
const supportsMonetization: boolean = document.createElement('link').relList.supports('monetization');
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.
...it's part of "DOM API"
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'm aligned with what Sid is mentioning. I think the example should state something around these lines:
Show a message to site visitors to thank them for their support
.
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.
Given Firefox & Safari don't support Permissions-Policy
, but they both support iframe
allow attribute, maybe this file should add some more focus on that attribute.
Also, extension doesn't support the header as of now. But it has partial support for allow
attribute (interledger/web-monetization-extension#575).
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.
iii) APIs & Headers review:
window.onmonetization = function () { | ||
alert('This page supports Web Monetization.') | ||
} |
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'm aligned with what Sid is mentioning. I think the example should state something around these lines:
Show a message to site visitors to thank them for their support
.
Co-authored-by: Radu-Cristian Popa <[email protected]>
Co-authored-by: Radu-Cristian Popa <[email protected]>
Co-authored-by: Radu-Cristian Popa <[email protected]>
Co-authored-by: Radu-Cristian Popa <[email protected]>
Co-authored-by: Radu-Cristian Popa <[email protected]>
Co-authored-by: Radu-Cristian Popa <[email protected]>
Co-authored-by: Sid Vishnoi <[email protected]>
Co-authored-by: Sid Vishnoi <[email protected]>
Co-authored-by: Radu-Cristian Popa <[email protected]>
Co-authored-by: Radu-Cristian Popa <[email protected]>
This is the replacement PR for #463 after the main branch visual update