mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Cleanup navigator logic
This patch cleans up navigator logic. (This is a result of a pair programming with @pavelfeldman).
This commit is contained in:
@@ -263,7 +263,7 @@ class Page extends EventEmitter {
|
||||
* @return {!Promise<boolean>}
|
||||
*/
|
||||
navigate(url, options) {
|
||||
return new Navigator(this._client, options).navigate(url, this._networkManager.httpHeaders().referer);
|
||||
return new Navigator(this._client, url, this._networkManager.httpHeaders().referer, options).navigate();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user