diff --git a/src/content/modules/download.ts b/src/content/modules/download.ts index 7436b0ed..118d5036 100644 --- a/src/content/modules/download.ts +++ b/src/content/modules/download.ts @@ -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)