-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve hook for running code before initialisation in `renderAndInit…
…ialise` - Clarify naming as it's actually code that runs before initialisation rather than does any kind of initialisation of the component itself - Update how the hook is run to be directly called by `page.evaluate`. Having it run as part of the function that did the initialisation didn't run reliably for updating the `govuk-frontend-supported` class, or even other simpler scenarios like logging or throwing. Calling it directly with `page.evaluate` seems to run more reliably.
- Loading branch information
1 parent
d5456e0
commit 2e57cd6
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters