summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-02-20 09:17:15 +0100
committerJulius Härtl <jus@bitgrid.net>2023-02-20 09:17:15 +0100
commitf3d3dfa075ced44622b5a84387d95281def3b5a3 (patch)
tree046626acff4c1c848d36944f8603e9827da9549f /core/js
parentbba3a1ccf0b41ee212cfb43ceee2b20e66904654 (diff)
downloadnextcloud-server-f3d3dfa075ced44622b5a84387d95281def3b5a3.tar.gz
nextcloud-server-f3d3dfa075ced44622b5a84387d95281def3b5a3.zip
fix: Avoid throwing errors on public auth page
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/js')
-rw-r--r--core/js/publicshareauth.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/publicshareauth.js b/core/js/publicshareauth.js
index 374d7e92e16..3d694c7bfd6 100644
--- a/core/js/publicshareauth.js
+++ b/core/js/publicshareauth.js
@@ -47,6 +47,8 @@ document.addEventListener('DOMContentLoaded', function() {
// Adds functionality to the request password button
var passwordRequestButton = document.getElementById('request-password-button-not-talk');
- passwordRequestButton.addEventListener('click', showEmailAddressPromptForm);
+ if (passwordRequestButton) {
+ passwordRequestButton.addEventListener('click', showEmailAddressPromptForm);
+ }
});