Method
notifications
(object: Record<string, any> | string | null = null)
Source from the content-addressed store, hash-verified
| 25 | } |
| 26 | |
| 27 | static notifications(object: Record<string, any> | string | null = null): any { |
| 28 | if (object !== null) { |
| 29 | if (typeof object === 'string') { |
| 30 | return Notify._configuration.notifications[object]; |
| 31 | } else { |
| 32 | Notify._configuration.notifications = Object.assign({}, Notify._configuration.notifications, object); |
| 33 | } |
| 34 | } else { |
| 35 | return Notify._configuration.notifications; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | hasPermission: boolean; |
| 40 | notification: any; |
Tested by
no test coverage detected