You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've create a clone browser function so I can create new browser with the same cookieJar.
browser.js:
/** * Clone a new `Browser` with the same cookieJar, external options and userAgent as the sourceBrowser. * * @param {Object} source browser. * @api public */Browser.prototype.cloneBrowser=function(sourceBrowser){this.external=sourceBrowser.external;this.cookieJar=sourceBrowser.cookieJar;this.userAgent=sourceBrowser.userAgent;};
tobi.js:
/** * Initialize a new `Browser` with the same cookieJar and userAgent */exports.cloneBrowser=function(a,b,c,d){new_browser=newexports.Browser(a,b,c);new_browser.cloneBrowser(d)returnnew_browser;};
I need this function because I have several hosts that share the same cookies.
Hi,
I've create a clone browser function so I can create new browser with the same cookieJar.
browser.js:
tobi.js:
I need this function because I have several hosts that share the same cookies.
Can you please add this function (or something similar) to the next release?
Thanks.
Best regards,
Migrate
The text was updated successfully, but these errors were encountered: