dist/crocodoc.viewer.js
function validateQueryParams() {
        var queryString;
        if (config.queryParams) {
            if (typeof config.queryParams === 'string') {
                // strip '?' if it's there, because we add it below
                queryString = config.queryParams.replace(/^\?/, '');
            } else {
                queryString = util.param(config.queryParams);
            }
        }
        config.queryString = queryString ? '?' + queryString : '';
    }
function validateQueryParams() {
        var queryString;
        if (config.queryParams) {
            if (typeof config.queryParams === 'string') {
                // strip '?' if it's there, because we add it below
                queryString = config.queryParams.replace(/^\?/, '');
            } else {
                queryString = util.param(config.queryParams);
            }
        }
        config.queryString = queryString ? '?' + queryString : '';
    }
function validateQueryParams ( ) { var queryString ; if ( config . queryParams ) { if ( typeof config . queryParams === 'string' ) { // strip '?' if it's there, because we add it below queryString = config . queryParams . replace ( / ^\? / , '' ) ; } else { queryString = util . param ( config . queryParams ) ; } } config . queryString = queryString ? '?' + queryString : '' ; }
Validates and normalizes queryParams config option
@returns {void}
Validates and normalizes queryParams config option