fear: accept userId
This commit is contained in:
@@ -91,9 +91,9 @@ export class RemoteBrowser {
|
|||||||
* @param options remote browser options to be used when launching the browser
|
* @param options remote browser options to be used when launching the browser
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
public initialize = async (options: RemoteBrowserOptions): Promise<void> => {
|
public initialize = async (options: RemoteBrowserOptions, userId: string): Promise<void> => {
|
||||||
this.browser = <Browser>(await options.browser.launch(options.launchOptions));
|
this.browser = <Browser>(await options.browser.launch(options.launchOptions));
|
||||||
const proxyConfig = await getDecryptedProxyConfig('1');
|
const proxyConfig = await getDecryptedProxyConfig(userId);
|
||||||
let proxyOptions: { server: string, username?: string, password?: string } = { server: '' };
|
let proxyOptions: { server: string, username?: string, password?: string } = { server: '' };
|
||||||
if (proxyConfig.proxy_url) {
|
if (proxyConfig.proxy_url) {
|
||||||
proxyOptions = {
|
proxyOptions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user