react-desktop-notification
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -16,4 +16,4 @@ /** | ||
})(5)); | ||
if (!Notification) { | ||
console.log("Your browser is not support desktop notifications, please try Chrome or Firefox."); | ||
if (!('Notification' in window)) { | ||
console.log("Your browser does not support desktop notifications, please try Chrome or Firefox."); | ||
return false; | ||
@@ -36,4 +36,4 @@ } | ||
focus:function(title, context, url, icon){ | ||
if (!Notification) { | ||
console.log("Your browser is not support desktop notifications, please try Chrome or Firefox."); | ||
if (!('Notification' in window)) { | ||
console.log("Your browser does not support desktop notifications, please try Chrome or Firefox."); | ||
return false; | ||
@@ -40,0 +40,0 @@ } |
{ | ||
"name": "react-desktop-notification", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Use browser's desktop notification in React. It depends on notifications API of chrome or else browser's other way.", | ||
@@ -9,2 +9,12 @@ "main": "index.js", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/leejaen/React-Desktop-Notification.git" | ||
}, | ||
"keywords": [ | ||
"react notification", | ||
"desktop-notification", | ||
"react-desktop-notification", | ||
"react-browser-notification" | ||
], | ||
"author": "leejaen", | ||
@@ -11,0 +21,0 @@ "license": "ISC", |
@@ -39,1 +39,11 @@ ## react-desktop-notification | ||
https://github.com/leejaen/React-Desktop-Notification.git | ||
## contributors | ||
* Oscar Ruckdeschel: https://github.com/ibiBgOR | ||
* Johnathan Saunders: https://github.com/SirSaunders | ||
* Alexandre Amoedo Amorim: https://github.com/amoedoamorim | ||
BIG Thanks! |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
4371
48
0
3