aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/publicshareauth.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-02-20 12:36:06 +0100
committerGitHub <noreply@github.com>2023-02-20 12:36:06 +0100
commit95eeba83b6570b3cf7cbb79aea42222f7d3e03f4 (patch)
tree53add6b43a82e418d0e267d4160f536724e886f6 /core/js/publicshareauth.js
parent6bb0985e59d7ba3c4cf9928d8bb766ac9975cd12 (diff)
parent4cebfa95e68e95afd9f6c038ded32e68b7db1cd2 (diff)
downloadnextcloud-server-95eeba83b6570b3cf7cbb79aea42222f7d3e03f4.tar.gz
nextcloud-server-95eeba83b6570b3cf7cbb79aea42222f7d3e03f4.zip
Merge pull request #36780 from nextcloud/bugfix/noid/console-error-share-auth
Diffstat (limited to 'core/js/publicshareauth.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);
+ }
});