mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
add tests for database module #27
This commit is contained in:
@@ -42,7 +42,7 @@ class Database {
|
||||
createProgressCounter (callback) {
|
||||
const id = progressCounterIds++
|
||||
this.importProgresses[id] = new EventTarget()
|
||||
this.importProgresses[id].addEventListener('progress', callback)
|
||||
this.importProgresses[id].addEventListener('progress', e => { callback(e.detail) })
|
||||
return id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user