Skip to content

Commit

Permalink
feat: ダウンロードに失敗した場合エラーメッセージを表示するようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
mnao305 committed Jul 28, 2024
1 parent 2ca4499 commit 9aadfff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const download = async (url: string, filename: string, filepath: string):
}
browser.downloads.download(options).catch((e) => {
console.error(e, options)
alert(`ダウンロードに失敗しました。\n\n${e}\n${options.filename}`)
}
)
}
Expand Down

0 comments on commit 9aadfff

Please sign in to comment.