summaryrefslogtreecommitdiffstats
path: root/core/js/publicshareauth.js
diff options
context:
space:
mode:
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);
+ }
});