Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
QCCheckView.prototype.checkIfUserLogged = function (cfResponse) {
var responseText = cfResponse.getDataStructs()[0]['d.Screen']['d.Text'];
if (responseText.includes('SIGN IN') || responseText.includes('PROCESSING ERROR DETECTED - L1004')) {
Context_10.getService(LayerService_3.LayerService).showInModal(new MessageView_1.MessageView({
model: { message: "Command failed, not signed in" }
}), { title: "PNR Status" }, { display: 'areaView' });
return false;
}
return true;
};
QCCheckView.prototype.handleFailure = function (segment) {