Skip to content

Commit

Permalink
fix: extraChromeFlags option: `TypeError: Assignment to constant va…
Browse files Browse the repository at this point in the history
…riable.`
  • Loading branch information
ym committed Apr 18, 2024
1 parent c6b7bed commit 45149cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 5.20.4 - 2024-04-18
### Changed
- Fix `extraChromeFlags` option: `TypeError: Assignment to constant variable.`

## 5.20.3 - 2024-04-17
### Changed
- Add `proxyServer` option to allow for a proxy server to be used by Headless Chrome
Expand Down
2 changes: 1 addition & 1 deletion lib/browsers/chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ chrome.spawn = function (options) {
return reject();
}

const chromeFlags = this.options.chromeFlags || [
let chromeFlags = this.options.chromeFlags || [
'--headless',
'--disable-gpu',
'--remote-debugging-port=' + this.options.browserDebuggingPort,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Prerender.io",
"name": "prerender",
"description": "Service to prerender Javascript rendered pages for SEO",
"version": "5.20.3",
"version": "5.20.4",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit 45149cc

Please sign in to comment.