Skip to content

Commit 03fbb5a

Browse files
Fixing incorrect default throttling option
1 parent 1696784 commit 03fbb5a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/routes/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ router.post('/receive_submission', async function(req, res) {
199199
const {channel, is_schedule} = JSON.parse(res_data.view.private_metadata);
200200

201201
let submission = {
202-
throttling: true,
203-
performance: true,
202+
throttling: false,
203+
performance: false,
204204
seo: false,
205205
pwa: false,
206206
'best-practices': false,

src/utils/lighthouse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ 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-
console.log(options.throttling)
61-
if (options.throttling === false || options.throttling === 'false') {
60+
if (options.throttling === false) {
6261
// Values referenced in
6362
// https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/constants.js
6463
opts.throttlingMethod = 'provided';
@@ -71,6 +70,7 @@ async function launchPuppeteer(url, options) {
7170
downloadThroughputKbps: 0,
7271
uploadThroughputKbps: 0,
7372
};
73+
opts.formFactor = 'desktop'
7474
opts.screenEmulation = {
7575
mobile: false,
7676
width: 1350,

0 commit comments

Comments
 (0)