Skip to content

Commit 824fb50

Browse files
authored
Merge pull request #35 from Webperf-se/browsertime-config
Fix issue where browsertime config was required to be applied manually
2 parents 406585d + 580b54f commit 824fb50

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/index.js

+12
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ export default class JavascriptPlugin extends SitespeedioPlugin {
3232
async processMessage(message, queue) {
3333
// const filterRegistry = this.filterRegistry;
3434
switch (message.type) {
35+
case 'browsertime.setup': {
36+
// check https://github.com/sitespeedio/dashboard.sitespeed.io/blob/main/config/emulatedMobile.json for inspiration
37+
queue.postMessage(this.make('browsertime.config', {
38+
"chrome": {
39+
"includeResponseBodies": "all",
40+
},
41+
"firefox": {
42+
"includeResponseBodies": "all"
43+
}
44+
}));
45+
break;
46+
}
3547
case 'sitespeedio.setup': {
3648
// Let other plugins know that our plugin is alive
3749
queue.postMessage(this.make(pluginname + '.setup', {

0 commit comments

Comments
 (0)