* Push a notification * @param {string} title Title of the notification * @param {string} message Message body of the notification * @param {Object} options Notification options * @param {string} [options.icon] Icon for the notification, can be a URL or a base64 encoded image or icon class o
(
title,
message,
{ icon, action = null, type = "info" } = {},
)
| 952 | * @param {('info'|'warning'|'error'|'success')} [options.type='info'] Type of notification |
| 953 | */ |
| 954 | pushNotification( |
| 955 | title, |
| 956 | message, |
| 957 | { icon, action = null, type = "info" } = {}, |
| 958 | ) { |
| 959 | notificationManager.pushNotification({ |
| 960 | title, |
| 961 | message, |
| 962 | icon, |
| 963 | action, |
| 964 | type, |
| 965 | }); |
| 966 | } |
| 967 | |
| 968 | /** |
| 969 | * Register a custom file type handler |
no outgoing calls
no test coverage detected