(title: string, body: string, details: {error?: any} = {})
| 1 | /* eslint no-new:0 */ |
| 2 | export default function notify(title: string, body: string, details: {error?: any} = {}) { |
| 3 | console.log(`[Notification] ${title}: ${body}`); |
| 4 | if (details.error) { |
| 5 | console.error(details.error); |
| 6 | } |
| 7 | new Notification(title, {body}); |
| 8 | } |
no test coverage detected