()
| 57 | }; |
| 58 | |
| 59 | export const check = () => { |
| 60 | if (!settings.privacy.updateCheck) { |
| 61 | if (!loggedDisabled) { |
| 62 | console.info('Update check disabled by privacy.updateCheck=false (see PRIVACY.md)'); |
| 63 | loggedDisabled = true; |
| 64 | } |
| 65 | return; |
| 66 | } |
| 67 | needsUpdate((needsUpdate: boolean) => { |
| 68 | if (needsUpdate) { |
| 69 | console.warn(`Update available: Download the actual version ${infos.latestVersion}`); |
| 70 | } |
| 71 | }).then(()=>{}); |
| 72 | }; |
no test coverage detected