Skip to content

Commit

Permalink
feat: add server to connectedToBrowser event
Browse files Browse the repository at this point in the history
  • Loading branch information
Laszlo Luczo committed May 6, 2024
1 parent a04375d commit 2a0f760
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 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.21.1 - 2024-05-06
### Changed
- Add `server` object to `connectedToBrowser` event

## 5.21.0 - 2024-05-06
### Changed
- Make `BROWSER_TRY_RESTART_PERIOD` configurable in the server options
Expand Down
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ server.startPrerender = function() {
this.lastRestart = new Date().getTime();
this.isBrowserConnected = true;
util.log(`Started ${this.browser.name}: ${this.browser.version}`);
return this.firePluginEvent('connectedToBrowser');
return this.firePluginEvent('connectedToBrowser', {server});
}).then(() => resolve())
.catch((err) => {
util.log(err);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.21.0",
"version": "5.21.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit 2a0f760

Please sign in to comment.