File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -269,8 +269,9 @@ addToLibrary({
269
269
}
270
270
} ;
271
271
272
- transaction . onerror = ( e ) => {
273
- done ( this . error ) ;
272
+ // transaction may abort if (for example) there is a QuotaExceededError
273
+ transaction . onerror = transaction . onabort = ( e ) => {
274
+ done ( e . target . error ) ;
274
275
e . preventDefault ( ) ;
275
276
} ;
276
277
@@ -280,12 +281,6 @@ addToLibrary({
280
281
}
281
282
} ;
282
283
283
- // transaction may abort if (for example) there is a QuotaExceededError
284
- transaction . onabort = ( e ) => {
285
- done ( e . target . error ) ; // DOMException
286
- e . preventDefault ( ) ;
287
- } ;
288
-
289
284
// sort paths in ascending order so directory entries are created
290
285
// before the files inside them
291
286
create . sort ( ) . forEach ( ( path ) => {
You can’t perform that action at this time.
0 commit comments