lib/swsInterface.js
function processOptions(options){
    if(!options) return;

    for(var op in swsUtil.supportedOptions){
        if(op in options){
            swsOptions[op] = options[op];
        }
    }

    // update standard path
    pathUI = swsOptions.uriPath+'/ui';
    pathDist = swsOptions.uriPath+'/dist';
    pathStats = swsOptions.uriPath+'/stats';
    pathMetrics = swsOptions.uriPath+'/metrics';
    pathLogout = swsOptions.uriPath+'/logout';

    if( swsOptions.authentication ){
        setInterval(expireSessionIDs,500);
    }
}
function processOptions(options){
    if(!options) return;

    for(var op in swsUtil.supportedOptions){
        if(op in options){
            swsOptions[op] = options[op];
        }
    }

    // update standard path
    pathUI = swsOptions.uriPath+'/ui';
    pathDist = swsOptions.uriPath+'/dist';
    pathStats = swsOptions.uriPath+'/stats';
    pathMetrics = swsOptions.uriPath+'/metrics';
    pathLogout = swsOptions.uriPath+'/logout';

    if( swsOptions.authentication ){
        setInterval(expireSessionIDs,500);
    }
}
function processOptions ( options ) { if ( ! options ) return ; for ( var op in swsUtil . supportedOptions ) { if ( op in options ) { swsOptions [ op ] = options [ op ] ; } } // update standard path pathUI = swsOptions . uriPath + '/ui' ; pathDist = swsOptions . uriPath + '/dist' ; pathStats = swsOptions . uriPath + '/stats' ; pathMetrics = swsOptions . uriPath + '/metrics' ; pathLogout = swsOptions . uriPath + '/logout' ; if ( swsOptions . authentication ) { setInterval ( expireSessionIDs , 500 ) ; } }
Override defaults if options are provided
Override defaults if options are provided