Skip to content

Commit

Permalink
add back 12 hours and check after reload
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfbrito committed Dec 6, 2023
1 parent ce9296c commit 87299eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/servers/supportedVersions/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ const checkSupportedVersion = async (serverUrl: string): Promise<void> => {
if (!expirationMessage) return;
if (
expirationMessageLastTimeShown &&
moment().diff(expirationMessageLastTimeShown, 'seconds') < 1
moment().diff(expirationMessageLastTimeShown, 'hours') < 12
)
return;
await updateSupportedVersionsData(serverUrl);
Expand All @@ -426,7 +426,8 @@ export function checkSupportedVersionServers(): void {
});

listen(WEBVIEW_SERVER_RELOADED, async (action) => {
updateSupportedVersionsData(action.payload.url);
await updateSupportedVersionsData(action.payload.url);
checkSupportedVersion(action.payload.url);
});

listen(WEBVIEW_SERVER_SUPPORTED_VERSIONS_UPDATED, async (action) => {
Expand Down

0 comments on commit 87299eb

Please sign in to comment.