Skip to content

Commit

Permalink
fix: fixed URL error
Browse files Browse the repository at this point in the history
  • Loading branch information
hans000 committed Aug 19, 2024
1 parent ede9d15 commit 3dd1cce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Easy Interceptor",
"version": "1.17.0",
"version": "1.17.1",
"description": "__MSG_description__",
"permissions": [
"storage",
Expand All @@ -20,7 +20,7 @@
"default_locale": "zh_CN",
"content_security_policy" : "script-src 'self' 'unsafe-eval'; script-src-elem 'self' data: blob: https://unpkg.com; worker-src 'self' data: blob:; object-src 'self'",
"browser_action": {
"default_title": "Easy Interceptor by hans000 - v1.17.0",
"default_title": "Easy Interceptor by hans000 - v1.17.1",
"default_popup": "index.html",
"default_icon": "images/128-gray.png"
},
Expand Down
2 changes: 1 addition & 1 deletion src/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export function tryToProxyUrl(url: string | URL, proxy: Record<string, string |
target: string
rewrite?: string
}> = {}) {
const urlObj = url instanceof URL ? url : new URL(url)
const urlObj = url instanceof URL ? url : parseUrl(url)
for (const [name, value] of Object.entries(proxy)) {
try {
const reg = new RegExp(name)
Expand Down

0 comments on commit 3dd1cce

Please sign in to comment.