Skip to content

Commit

Permalink
Merge pull request #691 from alphagov/update-webchat-predicate
Browse files Browse the repository at this point in the history
Reflect eGain changes in the other selectors used
  • Loading branch information
Isabell Long committed Dec 4, 2015
2 parents cec3b61 + f12dcdd commit 16d1da2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/webchat-iframe.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
if (message.evt === 'load') {
loadIFrame(message.url, message.title);
} else if (message.evt === 'accept') {
document.querySelector('.egofr-hmrc5-btnOK').click();
document.querySelector('.egofr-hmrc-btnOK').click();
signalOfferStatus();
} else if (message.evt === 'reject') {
document.querySelector('.egofr-hmrc5-btnCancel').click();
document.querySelector('.egofr-hmrc-btnCancel').click();
signalOfferStatus();
}
}
Expand Down

0 comments on commit 16d1da2

Please sign in to comment.