mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 03:40:33 +08:00
chore(ProxyManager): remove unnecessary console log
This commit is contained in:
parent
1e49b2e605
commit
3dbfd4928c
@ -73,7 +73,6 @@ export class ProxyManager {
|
|||||||
await this.setSessionsProxy({ mode: 'system' })
|
await this.setSessionsProxy({ mode: 'system' })
|
||||||
const proxyString = await session.defaultSession.resolveProxy('https://dummy.com')
|
const proxyString = await session.defaultSession.resolveProxy('https://dummy.com')
|
||||||
const [protocol, address] = proxyString.split(';')[0].split(' ')
|
const [protocol, address] = proxyString.split(';')[0].split(' ')
|
||||||
console.log('protocol', protocol)
|
|
||||||
const url = protocol === 'PROXY' ? `http://${address}` : null
|
const url = protocol === 'PROXY' ? `http://${address}` : null
|
||||||
if (url && url !== this.config.url) {
|
if (url && url !== this.config.url) {
|
||||||
this.config.url = url.toLowerCase()
|
this.config.url = url.toLowerCase()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user