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

Don't use toastr when notifications are blocked. #2317

Merged
merged 1 commit into from Sep 27, 2017

Conversation

sebastienvercammen
Copy link
Member

Description

When a client denies Notifications permission, we shouldn't show any notifications at all. We should assume the user intentionally blocked them so they wouldn't see any notifications at all.

toastr fallback is still enabled for browsers that don't support the Notifications API.

Motivation and Context

By popular demand.

Types of changes

  • Enhancement

Checklist:

  • My code follows the code style of this project.

Copy link

@Deewii Deewii left a comment

Choose a reason for hiding this comment

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

Works as intended, great!

@pogo-excalibur
Copy link
Contributor

@sebastienvercammen this was discussed in the original PR:
#2138 (comment)

@sebastienvercammen
Copy link
Member Author

@pogo-excalibur Yes, it definitely was, but we've gotten reports about changing the behavior because it's more intuitive.

@pogo-excalibur
Copy link
Contributor

@sebastienvercammen fair enough 🤷

Copy link
Contributor

@pogo-excalibur pogo-excalibur left a comment

Choose a reason for hiding this comment

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

What's the reason for leaving the error-handling function?

@sebastienvercammen
Copy link
Member Author

@pogo-excalibur Clarification on the decision to change the behavior.

Copy link
Contributor

@pogo-excalibur pogo-excalibur left a comment

Choose a reason for hiding this comment

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

@sebastienvercammen fair enough

@sebastienvercammen sebastienvercammen merged commit 26e663e into RocketMap:develop Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants