Fix 'install now' click after download
This commit is contained in:
parent
81c57107ce
commit
d80e738fb1
5 changed files with 82 additions and 83 deletions
|
@ -8,3 +8,11 @@ export function isMoreRecentThan(timestamp: number, delta: number): boolean {
|
|||
export function isOlderThan(timestamp: number, delta: number): boolean {
|
||||
return timestamp <= Date.now() - delta;
|
||||
}
|
||||
|
||||
export function isInPast(timestamp: number): boolean {
|
||||
return isOlderThan(timestamp, 0);
|
||||
}
|
||||
|
||||
export function isInFuture(timestamp: number): boolean {
|
||||
return isMoreRecentThan(timestamp, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue