File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 11import { isBeingFramed , withRetry } from '../utils' ;
22import { ActionExecutorBase } from './broker-protection' ;
3+ import { ErrorResponse } from './broker-protection/types' ;
34
45export const ANIMATION_DURATION_MS = 1000 ;
56export const ANIMATION_ITERATIONS = Infinity ;
@@ -599,7 +600,12 @@ export default class AutofillImport extends ActionExecutorBase {
599600 window . location . href = downloadURL ;
600601 } else {
601602 // If there's no user id or export id, we post an action failed message
602- this . postBookmarkImportMessage ( 'actionFailed' , { error : 'No user id or export id found' } ) ;
603+ this . postBookmarkImportMessage ( 'actionCompleted' , {
604+ result : new ErrorResponse ( {
605+ actionID : 'download-data' ,
606+ message : 'No user id or export id found' ,
607+ } ) ,
608+ } ) ;
603609 }
604610 }
605611
You can’t perform that action at this time.
0 commit comments