From fdd5065170419fe44b1f2c96945708facb315e0e Mon Sep 17 00:00:00 2001 From: YanhuiJessica <137126578@qq.com> Date: Wed, 20 Apr 2022 22:44:24 +0800 Subject: [PATCH] =?UTF-8?q?URL=20=E8=A7=A3=E7=A0=81=E4=B8=8D=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E9=97=AE=E9=A2=98=20fixed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 4 ++-- package.json | 2 +- public/js/background.js | 2 +- public/manifest.json.chrome | 2 +- public/manifest.json.firefox | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 546edd7..7e9faef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "troncuclass", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "troncuclass", - "version": "1.0.1", + "version": "1.0.2", "license": "MIT", "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.1.1", diff --git a/package.json b/package.json index 04e618c..59ed9c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "troncuclass", - "version": "1.0.1", + "version": "1.0.2", "private": true, "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.1.1", diff --git a/public/js/background.js b/public/js/background.js index f1c9a47..972d3ea 100644 --- a/public/js/background.js +++ b/public/js/background.js @@ -11,7 +11,7 @@ function getQueryVariable(query, variable) chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) { if (request.from === 'content') { - let filename = getQueryVariable(decodeURI(request.url), 'name'); + let filename = getQueryVariable(decodeURIComponent(request.url), 'name'); chrome.downloads.download({ url: request.url, filename: filename, diff --git a/public/manifest.json.chrome b/public/manifest.json.chrome index 7623766..86821a5 100644 --- a/public/manifest.json.chrome +++ b/public/manifest.json.chrome @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "TronCUClass", - "version": "1.0.1", + "version": "1.0.2", "description": "CUC 畅课课件下载(支持所有格式) Download coursewares for CUC Tronclass (all types available)", "homepage_url": "https://github.com/YanhuiJessica/TronCUClass", diff --git a/public/manifest.json.firefox b/public/manifest.json.firefox index 832b628..9b4eaf5 100644 --- a/public/manifest.json.firefox +++ b/public/manifest.json.firefox @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "TronCUClass", - "version": "1.0.1", + "version": "1.0.2", "description": "CUC 畅课课件下载(支持所有格式) Download coursewares for CUC Tronclass (all types available)", "homepage_url": "https://github.com/YanhuiJessica/TronCUClass",