Merge pull request #7451 from csrakowski/NotifyJS

Notify js - Notify.isSupported is a method in 1.2.8
This commit is contained in:
Masahiro Wakame
2016-01-11 15:43:31 +09:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -31,6 +31,6 @@ function test_Notify_static_methods() {
Notify.requestPermission();
Notify.requestPermission(()=> console.log("onPermissionGrantedCallback"));
Notify.requestPermission(()=> console.log("onPermissionGrantedCallback"), ()=> console.log("onPermissionDeniedCallback"));
Notify.isSupported;
Notify.isSupported();
Notify.permissionLevel;
}
+2 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for notify.js 1.2.3
// Type definitions for notify.js 1.2.8
// Project: https://github.com/alexgibson/notify.js
// Definitions by: soundTricker <https://github.com/soundTricker>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -23,7 +23,7 @@ declare var Notify: {
* return true if the browser supports HTML5 Notification
* @param true : the browser supports HTML5 Notification, false ; the browser does not supports HTML5 Notification.
*/
isSupported: boolean;
isSupported(): boolean;
/**
* shows the user's current permission level (granted, denied or default), returns null if notifications are not supported.