refactor(Proxy): Update proxy configuration handling
This commit is contained in:
parent
84360bfde8
commit
06ab8f35ce
@ -17,11 +17,13 @@ export class ProxyManager {
|
|||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.config = {
|
this.config = {
|
||||||
mode: 'system',
|
mode: 'none',
|
||||||
url: ''
|
url: ''
|
||||||
}
|
}
|
||||||
|
if (this.config.mode === 'system') {
|
||||||
this.monitorSystemProxy()
|
this.monitorSystemProxy()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private async setSessionsProxy(config: _ProxyConfig): Promise<void> {
|
private async setSessionsProxy(config: _ProxyConfig): Promise<void> {
|
||||||
const sessions = [session.defaultSession, session.fromPartition('persist:webview')]
|
const sessions = [session.defaultSession, session.fromPartition('persist:webview')]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user