We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f9a6d commit 3a39cacCopy full SHA for 3a39cac
packages/common/src/utils/analytics/sentry.ts
@@ -10,11 +10,16 @@ function getSentry(): Promise<typeof import('@sentry/browser')> {
10
}
11
12
let latestVersionPromise: Promise<string>;
13
+const versionTimeout = 1 * 60 * 1000;
14
function getLatestVersion() {
15
if (!latestVersionPromise) {
16
latestVersionPromise = fetch('/version.txt')
17
.then(x => x.text())
18
.catch(x => '');
19
+
20
+ setTimeout(() => {
21
+ latestVersionPromise = undefined;
22
+ }, versionTimeout);
23
24
25
return latestVersionPromise;
0 commit comments