Skip to content

Commit

Permalink
fix: map prodversion param to process.versions (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao authored Dec 17, 2024
1 parent 65ffa89 commit 0a275f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/downloadChromeExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const downloadChromeExtension = (
if (fs.existsSync(extensionFolder)) {
rimraf.sync(extensionFolder);
}
const fileURL = `https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&x=id%3D${chromeStoreID}%26uc&prodversion=32`; // eslint-disable-line
const fileURL = `https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&x=id%3D${chromeStoreID}%26uc&prodversion=${process.versions.chrome}`; // eslint-disable-line
const filePath = path.resolve(`${extensionFolder}.crx`);
downloadFile(fileURL, filePath)
.then(() => {
Expand Down

0 comments on commit 0a275f9

Please sign in to comment.