Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

signup: Use `querySelector` instead of accessing document property.

Junyao Chen113a79153274
diff --git a/web/src/portico/signup.js b/web/src/portico/signup.js
index de254596a11..6ff50f1adb6 100644
--- a/web/src/portico/signup.js
+++ b/web/src/portico/signup.js
@@ -116,7 +116,7 @@ $(() => {
$("[data-page-id='accounts-home']").length > 0 &&
window.location.hash.slice(0, 1) === "#"
) {
- document.email_form.action += window.location.hash;
+ document.querySelector("#send_form").action += window.location.hash;
}
// Code in this block will be executed when the user is at login page