Szukaj Zacznij od nowa

whenEvent('sessionVariableChange', function(v) { // Extract the name and value of the changed session variable let varName = v.name; let varValue = v.value; if (varName === 'Solution' && varValue === 'Success') { history.pushState({page: 1}, "", "?Solution=Success"); } else if (varName === 'Solution' && varValue === 'Pending') { history.pushState({page: 1}, "", "?Solution=Pending"); } else if (varName === 'Solution' && varValue === 'Escalated') { history.pushState({page: 1}, "", "?Solution=Escalated"); } else { history.pushState({page: 1}, "", "?"); } })