Skip to content

Commit

Permalink
Do not display download failure if canceled. Fixes mozilla#1362. r=vp…
Browse files Browse the repository at this point in the history
…orof
  • Loading branch information
jsantell committed Oct 10, 2016
1 parent ce12f88 commit f7738af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/downloads.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function registerDownloadHandlers(bw) {
item.once('done', (_event, state) => {
if (state === 'completed') {
bw.send('download-completed', itemData);
} else {
} else if (state === 'interrupted') {
bw.send('download-error', itemData);
}
});
Expand Down

0 comments on commit f7738af

Please sign in to comment.