Fully-functional proof-of-concept
This commit is contained in:
@ -136,6 +136,12 @@ export function createBrowserNotification(data){
|
||||
}
|
||||
|
||||
export function createNotification(data){
|
||||
|
||||
// Allow 'message' as an alias of our content
|
||||
if (data.message){
|
||||
data.content = data.message;
|
||||
}
|
||||
|
||||
return {
|
||||
type: 'CREATE_NOTIFICATION',
|
||||
notification: Object.assign(
|
||||
|
||||
Reference in New Issue
Block a user