From f48e9723a7798e91c9d603a168c19895eea67037 Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Sun, 2 Feb 2025 14:24:31 +0100 Subject: [PATCH] Fix: the API used android or android.enabled for Android configuration (#4427) --- bin/sitespeed.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/sitespeed.js b/bin/sitespeed.js index 4cf223b27..e508c2dab 100755 --- a/bin/sitespeed.js +++ b/bin/sitespeed.js @@ -46,7 +46,10 @@ async function api(options) { if (apiOptions.mobile) { apiOptions.api.testType = 'emulatedMobile'; - } else if (apiOptions.android) { + } else if ( + apiOptions.android === true || + apiOptions.android.enabled === true + ) { apiOptions.api.testType = 'android'; } else if (apiOptions.safari && apiOptions.safari.ios) { apiOptions.api.testType = 'ios';