Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: fix null return on querySelector #12848

Merged
merged 1 commit into from
Aug 3, 2021
Merged

misc: fix null return on querySelector #12848

merged 1 commit into from
Aug 3, 2021

Conversation

brendankenny
Copy link
Member

embarrassingly slipped through #12013 and not noticed since then because it really only affects the reports (where we usually go through some version of dom.find()) and page-functions (where we usually go through the battle-tested getElementsInDocument)

@brendankenny brendankenny requested a review from a team as a code owner August 3, 2021 00:05
@google-cla google-cla bot added the cla: yes label Aug 3, 2021
@@ -15,6 +15,9 @@ const DUPLICATED_MODULES_IGNORE_THRESHOLD = 1024;
const DUPLICATED_MODULES_IGNORE_ROOT_RATIO = 0.01;

const logEl = document.querySelector('#lh-log');
if (!logEl) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the same check as in lighthouse-viewer, but happy to do whatever

@brendankenny brendankenny merged commit 48031e4 into master Aug 3, 2021
@brendankenny brendankenny deleted the qsnull branch August 3, 2021 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants