Browse Source

Merge pull request #3 from meriadec/develop

Remove unused comments
master
KhalilBellakrid 7 years ago
committed by GitHub
parent
commit
cdda9616b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/helpers/hardReset.js

5
src/helpers/hardReset.js

@ -5,12 +5,7 @@ import db from 'helpers/db'
import { delay } from 'helpers/promise'
export default async function hardReset() {
// TODO: wait for the libcoreHardReset to be finished
// actually, libcore doesnt goes back to js thread
await libcoreHardReset.send()
// await Promise.race([libcoreHardReset.send().toPromise(), delay(500)])
disableDBMiddleware()
db.resetAll()
await delay(500)

Loading…
Cancel
Save