MCPcopy Index your code
hub / github.com/ether/etherpad / check

Function check

src/node/utils/UpdateCheck.ts:59–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57};
58
59export 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};

Callers 2

server.tsFile · 0.90

Calls 1

needsUpdateFunction · 0.85

Tested by

no test coverage detected