Skip to content

Commit

Permalink
fix: 名前に ~ が入っているとダウンロードができない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
mnao305 committed Jul 28, 2024
1 parent 3be2916 commit 2ca4499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/modules/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const fileDownload = (url: string, filepath: string, filename: string): P
const sendData = {
msg: 'download',
url,
// ガチャコン絵文字が入るとエラーになるので分割します
filepath: filepath.replaceAll('\u200d', ''),
// ガチャコン絵文字・`~`が入るとエラーになるので置換。
filepath: filepath.replaceAll('\u200d', '').replaceAll('~', '~'),
filename
}
return browser.runtime.sendMessage(sendData)
Expand Down

0 comments on commit 2ca4499

Please sign in to comment.