Skip to content

Commit 3dd1cce

Browse files
committed
fix: fixed URL error
1 parent ede9d15 commit 3dd1cce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

public/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Easy Interceptor",
4-
"version": "1.17.0",
4+
"version": "1.17.1",
55
"description": "__MSG_description__",
66
"permissions": [
77
"storage",
@@ -20,7 +20,7 @@
2020
"default_locale": "zh_CN",
2121
"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'",
2222
"browser_action": {
23-
"default_title": "Easy Interceptor by hans000 - v1.17.0",
23+
"default_title": "Easy Interceptor by hans000 - v1.17.1",
2424
"default_popup": "index.html",
2525
"default_icon": "images/128-gray.png"
2626
},

src/tools/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export function tryToProxyUrl(url: string | URL, proxy: Record<string, string |
232232
target: string
233233
rewrite?: string
234234
}> = {}) {
235-
const urlObj = url instanceof URL ? url : new URL(url)
235+
const urlObj = url instanceof URL ? url : parseUrl(url)
236236
for (const [name, value] of Object.entries(proxy)) {
237237
try {
238238
const reg = new RegExp(name)

0 commit comments

Comments
 (0)