function queryParamsConfig() {
    // Get Query Parameters
    const urlParams = new URLSearchParams(window.location.search);
    let tempLanguage = urlParams.get(config.languageQueryParam);
    let tempPcEnv = urlParams.get(config.pureCloudEnvironmentQueryParam);

    // Override default and storage items with what's on search query
    if (tempLanguage) {
        pcLanguage = tempLanguage;
        localStorage.setItem(appName + ':language', pcLanguage);
    }
    if (tempPcEnv) {
        pcEnvironment = tempPcEnv;
        localStorage.setItem(appName + ':environment', pcEnvironment);
    }
}
/**
 * Get query parameters for language and purecloud region
 */
Get query parameters for language and purecloud region
Get query parameters for language and purecloud region
function queryParamsConfig() {
    const urlParams = new URLSearchParams(window.location.search);
    let tempLanguage = urlParams.get(config.languageQueryParam);
    let tempPcEnv = urlParams.get(config.pureCloudEnvironmentQueryParam);
    if (tempLanguage) {
        pcLanguage = tempLanguage;
        localStorage.setItem(appName + ':language', pcLanguage);
    }
    if (tempPcEnv) {
        pcEnvironment = tempPcEnv;
        localStorage.setItem(appName + ':environment', pcEnvironment);
    }
}
function queryParamsConfig ( ) { const urlParams = new URLSearchParams ( window . location . search ) ; let tempLanguage = urlParams . get ( config . languageQueryParam ) ; let tempPcEnv = urlParams . get ( config . pureCloudEnvironmentQueryParam ) ; if ( tempLanguage ) { pcLanguage = tempLanguage ; localStorage . setItem ( appName + ':language' , pcLanguage ) ; } if ( tempPcEnv ) { pcEnvironment = tempPcEnv ; localStorage . setItem ( appName + ':environment' , pcEnvironment ) ; } }
Get query parameters for language and purecloud region
Get query parameters for language and purecloud region
// Get Query Parameters // Override default and storage items with what's on search query