Fix promise usage?

This commit is contained in:
Dan Finlay 2016-07-22 17:08:17 -07:00
parent ae6fa76241
commit 6b3ffc9e5d
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
function wait() {
return new Promise(function(resolve, reject) {
setTimeout(resolve, 500)
setTimeout(function() {
resolve()
}, 500)
})
}