mirror of
https://github.com/vector-im/element-web.git
synced 2024-09-09 22:55:12 +00:00
use function over const lambda
This commit is contained in:
parent
0a209fc340
commit
73990acf7a
1 changed files with 3 additions and 1 deletions
|
@ -57,4 +57,6 @@ export function deleteIndexedDB(dbName) {
|
|||
});
|
||||
}
|
||||
|
||||
export const sleep = (ms) => new Promise((resolve) => { setTimeout(resolve, ms); });
|
||||
export function sleep(ms) {
|
||||
return new Promise((resolve) => { setTimeout(resolve, ms); });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue