-
Notifications
You must be signed in to change notification settings - Fork 22.8k
Remove inline style/script (API H–S) #39783
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
Conversation
Sorry I ran out of steam on these inline script/style ones. I'll cycle back to it shortly |
np. Take your time! |
``` | ||
|
||
It's possible to send a notification as follows — here we present a fairly verbose and complete set of code you could use if you wanted to first check whether notifications are supported, then check if permission has been granted for the current origin to send notifications, then request permission if required, before then sending a notification. | ||
|
||
```js | ||
document.querySelector("button").addEventListener("click", notifyMe); |
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.
Maybe for later, but this is a good page to add {{embedlivesample}}
to.
I think that's everything, Josh, thanks for the improvements. As usual, checked diffs, ran a few examples to double-check, and checked live samples when they existed. A few comments for you to 🙏🏻 |
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.
Couple of comments to check.
Co-authored-by: Brian Smith <brian@smith.berlin>
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.
Great, thanks, Josh 👍🏻
* Remove inline style/script (API H–S) * Apply suggestions from code review Co-authored-by: Brian Smith <brian@smith.berlin> --------- Co-authored-by: Brian Smith <brian@smith.berlin>
Continuation of #39757