@@ -15,7 +15,7 @@ const { extractSelectivityEnabledEnvVariable } = require("./utils");
1515const is = utils . is ;
1616
1717function provideRootDefault ( name ) {
18- return ( ) => defaults [ name ] ;
18+ return ( ) => _ . get ( defaults , name ) ;
1919}
2020
2121exports . getTopLevel = ( ) => {
@@ -57,7 +57,7 @@ exports.getPerBrowser = () => {
5757
5858function provideTopLevelDefault ( name ) {
5959 return config => {
60- const value = config [ name ] ;
60+ const value = _ . get ( config , name ) ;
6161
6262 if ( _ . isUndefined ( value ) ) {
6363 throw new Error ( `"${ name } " should be set at the top level or per-browser option` ) ;
@@ -445,11 +445,11 @@ function buildBrowserOptions(defaultFactory, extra) {
445445 } ) ,
446446
447447 stateOpts : section ( {
448- path : options . optionalString ( "path" ) ,
449- cookies : options . optionalBoolean ( "cookies" ) ,
450- localStorage : options . optionalBoolean ( "localStorage" ) ,
451- sessionStorage : options . optionalBoolean ( "sessionStorage" ) ,
452- keepFile : options . optionalBoolean ( "keepFile" ) ,
453- } )
448+ path : options . optionalString ( "stateOpts. path" ) ,
449+ cookies : options . optionalBoolean ( "stateOpts. cookies" ) ,
450+ localStorage : options . optionalBoolean ( "stateOpts. localStorage" ) ,
451+ sessionStorage : options . optionalBoolean ( "stateOpts. sessionStorage" ) ,
452+ keepFile : options . optionalBoolean ( "stateOpts. keepFile" ) ,
453+ } ) ,
454454 } ) ;
455455}
0 commit comments