Skip to content

Commit

Permalink
URL 解码不完全问题 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
YanhuiJessica committed Apr 20, 2022
1 parent a2d98d3 commit fdd5065
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "troncuclass",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.1.1",
Expand Down
2 changes: 1 addition & 1 deletion public/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json.chrome
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json.firefox
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fdd5065

Please sign in to comment.