summaryrefslogtreecommitdiff
path: root/app/views/layouts/errors.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/errors.html.haml')
-rw-r--r--app/views/layouts/errors.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/errors.html.haml b/app/views/layouts/errors.html.haml
index 57260ccedea..3ddd8c6780f 100644
--- a/app/views/layouts/errors.html.haml
+++ b/app/views/layouts/errors.html.haml
@@ -22,8 +22,8 @@
}
// We do not have rails_ujs here, so we're manually making a link trigger a form submit.
- document.getElementById('sign_out_link').addEventListener('click', function(e) {
+ document.querySelector('.js-sign-out-link')?.addEventListener('click', (e) => {
e.preventDefault();
- document.getElementById('sign_out_form').submit();
+ document.querySelector('.js-sign-out-form')?.submit();
});
}());