()
| 39 | |
| 40 | |
| 41 | export const getLatestVersion = () => { |
| 42 | if (!settings.privacy.updateCheck) return undefined; |
| 43 | needsUpdate().catch(); |
| 44 | return infos?.latestVersion; |
| 45 | }; |
| 46 | |
| 47 | const needsUpdate = async (cb?: Function) => { |
| 48 | try { |
no test coverage detected