diff options
tests - integration - mascara - small cleanup and timeout adjustments
Diffstat (limited to 'mascara')
-rw-r--r-- | mascara/src/ui.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mascara/src/ui.js b/mascara/src/ui.js index d70dca724..2f940ad1a 100644 --- a/mascara/src/ui.js +++ b/mascara/src/ui.js @@ -63,9 +63,7 @@ function windowReload() { } function timeout (time) { - return new Promise(function (resolve, reject) { - setTimeout(function () { - resolve() - }, time || 1500) + return new Promise((resolve) => { + setTimeout(resolve, time || 1500) }) }
\ No newline at end of file |