format
This commit is contained in:
parent
d858222af7
commit
7d9044ab29
202 changed files with 10755 additions and 10972 deletions
|
|
@ -174,9 +174,11 @@ export class Browser {
|
|||
if (proxy) {
|
||||
const [protocol, rest] = proxy.split('://');
|
||||
if (!rest) {
|
||||
throw new Error('Invalid proxy format. Expected protocol://host:port or protocol://user:pass@host:port');
|
||||
throw new Error(
|
||||
'Invalid proxy format. Expected protocol://host:port or protocol://user:pass@host:port'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
const [auth, hostPort] = rest.includes('@') ? rest.split('@') : [null, rest];
|
||||
const finalHostPort = hostPort || rest;
|
||||
const [host, port] = finalHostPort.split(':');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue