Skip to content

Commit 37fc99b

Browse files
don't write on error
1 parent e757af3 commit 37fc99b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/platform/remoteConfig/refreshRemoteConfig.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export async function refreshRemoteConfig(): Promise<void> {
1313
}
1414

1515
console.warn('Failed to load remote config:', response.statusText)
16-
window.__CONFIG__ = {}
17-
remoteConfig.value = {}
16+
if (response.status === 401 || response.status === 403) {
17+
window.__CONFIG__ = {}
18+
remoteConfig.value = {}
19+
}
1820
} catch (error) {
1921
console.error('Failed to fetch remote config:', error)
20-
window.__CONFIG__ = {}
21-
remoteConfig.value = {}
2222
}
2323
}

0 commit comments

Comments
 (0)