mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-20 05:42:05 +00:00
Update detectRegion.tsx
This commit is contained in:
parent
c47aec2c5c
commit
18c9e65711
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ export async function detectRegion(): Promise<Region> {
|
|||
if (
|
||||
store.region &&
|
||||
store.lastChecked &&
|
||||
Math.floor(Date.now() / 1000) - store.lastChecked < 86400 // 1 day in seconds
|
||||
Math.floor(Date.now() / 1000) - store.lastChecked < 2592000 // 30 days in seconds
|
||||
) {
|
||||
return store.region;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue