Skip to content

Commit

Permalink
Merge pull request #1412 from appsembler/vladyslav/hide-html-elements…
Browse files Browse the repository at this point in the history
…-in-iframe

Set cookie value ror hideElements before redirect
  • Loading branch information
VladyslavTy committed Aug 22, 2024
2 parents 3914714 + a68fc7a commit 1a89bd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lms/static/js/student_account/views/FinishAuthView.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@

render: function() {
try {
var next = _.bind(this.enrollment, this);
this.checkEmailOptIn(next);
if (this.hideElements) {
document.cookie = 'hideElements=' + this.hideElements + '; path=/';
}
var next = _.bind(this.enrollment, this);
this.checkEmailOptIn(next);
} catch (err) {
this.updateTaskDescription(gettext('Error') + ': ' + err.message);
this.redirect(this.nextUrl);
Expand Down

0 comments on commit 1a89bd3

Please sign in to comment.