Browse Source

Remove unused comments

master
meriadec 7 years ago
parent
commit
3055ced9f0
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  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