Skip to content

Commit 1696784

Browse files
Temp: Testing issues with enabling throttling
1 parent 1d1f784 commit 1696784

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/lighthouse.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ async function launchPuppeteer(url, options) {
5757
if (options.seo) opts.onlyCategories.push('seo');
5858

5959
// as throttling is enabled by default in lighthouse, disable it if explicitly unchecked
60-
if (options.throttling === false) {
60+
console.log(options.throttling)
61+
if (options.throttling === false || options.throttling === 'false') {
6162
// Values referenced in
6263
// https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/constants.js
6364
opts.throttlingMethod = 'provided';

0 commit comments

Comments
 (0)