mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add test to check for indexedDB connection
This commit is contained in:
@@ -19,6 +19,10 @@ class StateStore {
|
||||
})
|
||||
}
|
||||
|
||||
connect () {
|
||||
return this.dbPromise.then(db => !!db)
|
||||
}
|
||||
|
||||
save (key, value) {
|
||||
return this.dbPromise.then(db => {
|
||||
if (!db) {
|
||||
|
||||
Reference in New Issue
Block a user