From 2ca4499048c1495e7559e1797ff774cb652475df Mon Sep 17 00:00:00 2001 From: mnao305 Date: Mon, 29 Jul 2024 03:25:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8D=E5=89=8D=E3=81=AB=20`~`=20?= =?UTF-8?q?=E3=81=8C=E5=85=A5=E3=81=A3=E3=81=A6=E3=81=84=E3=82=8B=E3=81=A8?= =?UTF-8?q?=E3=83=80=E3=82=A6=E3=83=B3=E3=83=AD=E3=83=BC=E3=83=89=E3=81=8C?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #560 --- src/content/modules/download.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)