(err?: Error)
| 8 | export default function fetchNotifications(win: BrowserWindow) { |
| 9 | const {rpc} = win; |
| 10 | const retry = (err?: Error) => { |
| 11 | setTimeout(() => fetchNotifications(win), ms('30m')); |
| 12 | if (err) { |
| 13 | console.error('Notification messages fetch error', err.stack); |
| 14 | } |
| 15 | }; |
| 16 | console.log('Checking for notification messages'); |
| 17 | fetch(NEWS_URL, { |
| 18 | headers: { |
no test coverage detected