Skip to content

Commit

Permalink
Initialize metadata globally
Browse files Browse the repository at this point in the history
  • Loading branch information
zabil committed May 14, 2024
1 parent 50d2ca6 commit 62ff95c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/browser/fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const mkdirAsync = util.promisify(fs.mkdir.bind(fs));
const unlinkAsync = util.promisify(fs.unlink.bind(fs));
const chmodAsync = util.promisify(fs.chmod.bind(fs));
const BrowserMetadata = require('./metadata');
const metadata = new BrowserMetadata();

function existsAsync(filePath) {
let fulfill = null;
Expand All @@ -43,7 +44,7 @@ class BrowserFetcher {
/**
* @param {!BrowserFetcher.Options=} options
*/
constructor(metadata = new BrowserMetadata()) {
constructor() {
this._downloadsFolder = path.join(helper.projectRoot(), '.local-chromium');
this.downloadURL = metadata.downloadURL;
this.revisionInfo = metadata.revisionInfo();
Expand Down

0 comments on commit 62ff95c

Please sign in to comment.