This repository was archived by the owner on Mar 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ class IdbDatastore extends Adapter {
59
59
}
60
60
61
61
if ( ! this . _tx ) {
62
- console . info ( 'creating new tx' ) // eslint-disable-line no-console
63
62
let cleanup
64
63
65
64
// idb gives us an `tx.done` promise, but awaiting on it then doing other
@@ -80,25 +79,14 @@ class IdbDatastore extends Adapter {
80
79
} )
81
80
82
81
const tx = this . store . transaction ( this . location , 'readwrite' )
83
- tx . oncomplete = ( ) => {
84
- console . info ( 'complete' ) // eslint-disable-line no-console
85
- cleanup ( )
86
- }
87
- tx . onerror = ( err ) => {
88
- console . info ( 'error' , err ) // eslint-disable-line no-console
89
- cleanup ( )
90
- }
91
- tx . onabort = ( err ) => {
92
- console . info ( 'abort' , err ) // eslint-disable-line no-console
93
- cleanup ( )
94
- }
82
+ tx . oncomplete = cleanup
83
+ tx . onerror = cleanup
84
+ tx . onabort = cleanup
95
85
96
86
this . _tx = {
97
87
tx,
98
88
done
99
89
}
100
- } else {
101
- console . info ( 'reusing existing tx' ) // eslint-disable-line no-console
102
90
}
103
91
104
92
// we only operate on one object store so the tx.store property is set
You can’t perform that action at this time.
0 commit comments