@@ -231,45 +231,6 @@ async function processSnapshot(snapshot: Snapshot, ctx: Context): Promise<Record
231231 return false ;
232232 }
233233
234- if ( options . web && Object . keys ( options . web ) . length ) {
235- processedOptions . web = { } ;
236-
237- // Check and process viewports in web
238- if ( options . web . viewports && options . web . viewports . length > 0 ) {
239- processedOptions . web . viewports = options . web . viewports . filter ( viewport =>
240- Array . isArray ( viewport ) && viewport . length > 0
241- ) ;
242- }
243-
244- // Check and process browsers in web
245- if ( options . web . browsers && options . web . browsers . length > 0 ) {
246- processedOptions . web . browsers = options . web . browsers ;
247- }
248- }
249-
250- if ( options . mobile && Object . keys ( options . mobile ) . length ) {
251- processedOptions . mobile = { } ;
252-
253- // Check and process devices in mobile
254- if ( options . mobile . devices && options . mobile . devices . length > 0 ) {
255- processedOptions . mobile . devices = options . mobile . devices ;
256- }
257-
258- // Check if 'fullPage' is provided and is a boolean, otherwise set default to true
259- if ( options . mobile . hasOwnProperty ( 'fullPage' ) && typeof options . mobile . fullPage === 'boolean' ) {
260- processedOptions . mobile . fullPage = options . mobile . fullPage ;
261- } else {
262- processedOptions . mobile . fullPage = true ; // Default value for fullPage
263- }
264-
265- // Check if 'orientation' is provided and is valid, otherwise set default to 'portrait'
266- if ( options . mobile . hasOwnProperty ( 'orientation' ) && ( options . mobile . orientation === 'portrait' || options . mobile . orientation === 'landscape' ) ) {
267- processedOptions . mobile . orientation = options . mobile . orientation ;
268- } else {
269- processedOptions . mobile . orientation = 'portrait' ; // Default value for orientation
270- }
271- }
272-
273234 if ( options . element && Object . keys ( options . element ) . length ) {
274235 if ( options . element . id ) processedOptions . element = '#' + options . element . id ;
275236 else if ( options . element . class ) processedOptions . element = '.' + options . element . class ;
@@ -379,7 +340,6 @@ async function processSnapshot(snapshot: Snapshot, ctx: Context): Promise<Record
379340 } ) ;
380341 }
381342 }
382- ctx . log . debug ( `Processed options: ${ JSON . stringify ( processedOptions ) } ` ) ;
383343 }
384344
385345 return {
0 commit comments