Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Pass empty strings, not null, to notifications API #2440

Merged
merged 1 commit into from Mar 20, 2017

Conversation

jaredhirsch
Copy link
Member

browser.notifications.create will throw if you pass it a null message, but it's fine if the message is an empty string.

Fixes the odd error message I've been seeing in the browser desktop notifications today:

Before:

screen shot 2017-03-20 at 1 46 58 pm

After:

screen shot 2017-03-20 at 4 30 08 pm

@dannycoates dannycoates merged commit e220088 into master Mar 20, 2017
@jaredhirsch jaredhirsch deleted the fix-notifications branch March 20, 2017 23:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants