react-desktop-notification
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -8,3 +8,3 @@ /** | ||
statics: { | ||
start: function(title, context, url, icon) { | ||
start: function(title, context, url, icon, name) { | ||
if (!Notification) { | ||
@@ -23,3 +23,3 @@ console.log("Your browser is not support desktop notifications, please try Chrome or Firefox."); | ||
notification.onclick = function() { | ||
window.open(url); | ||
window.open(url, name); | ||
}; | ||
@@ -26,0 +26,0 @@ } |
{ | ||
"name": "react-desktop-notification", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Use browser's desktop notification in React. It depends on notifications API of chrome or else browser's other way.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
2066