diff --git a/lib/index.js b/lib/index.js index dddf5f9..6f87e62 100644 --- a/lib/index.js +++ b/lib/index.js @@ -32,6 +32,18 @@ export default class JavascriptPlugin extends SitespeedioPlugin { async processMessage(message, queue) { // const filterRegistry = this.filterRegistry; switch (message.type) { + case 'browsertime.setup': { + // check https://github.com/sitespeedio/dashboard.sitespeed.io/blob/main/config/emulatedMobile.json for inspiration + queue.postMessage(this.make('browsertime.config', { + "chrome": { + "includeResponseBodies": "all", + }, + "firefox": { + "includeResponseBodies": "all" + } + })); + break; + } case 'sitespeedio.setup': { // Let other plugins know that our plugin is alive queue.postMessage(this.make(pluginname + '.setup', {