add tracking cooldown
This commit is contained in:
@ -4,3 +4,12 @@
|
||||
export function isProduction() {
|
||||
return process.env.NODE_ENV === "production";
|
||||
}
|
||||
|
||||
/**
|
||||
* Delays a promise
|
||||
*
|
||||
* @param ms the number of milliseconds to delay
|
||||
*/
|
||||
export function delay(ms: number) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
Reference in New Issue
Block a user