mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: add support for relative install paths to BrowserFetcher (#7613)
This patch fixes the BrowserFetcher._getFolderPath method so that it supports relative download paths using PUPPETEER_DOWNLOAD_PATH or npm config Issues: #7592
This commit is contained in:
parent
26145e9a24
commit
eebf452d38
@ -419,7 +419,7 @@ export class BrowserFetcher {
|
||||
* @internal
|
||||
*/
|
||||
_getFolderPath(revision: string): string {
|
||||
return path.join(this._downloadsFolder, `${this._platform}-${revision}`);
|
||||
return path.resolve(this._downloadsFolder, `${this._platform}-${revision}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user