summaryrefslogtreecommitdiff
path: root/static/js/redirect.js
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-12-04 07:06:37 -0500
committerDaniel Micay <danielmicay@gmail.com>2021-12-04 07:06:37 -0500
commit0a2a791a2c86758d1080bb1daaeed797731a342e (patch)
tree761e51ae87557794167a0093dc744ff7d9eb9557 /static/js/redirect.js
parenta5ce0d44a8d9afd15f8b0a7dd2c02e972c211f3c (diff)
use native style for JavaScript function name
Diffstat (limited to 'static/js/redirect.js')
-rw-r--r--static/js/redirect.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/js/redirect.js b/static/js/redirect.js
index 2a28e951..f42b79cc 100644
--- a/static/js/redirect.js
+++ b/static/js/redirect.js
@@ -51,7 +51,7 @@ const redirects = new Map([
["/install/#further-information", "/install/cli#further-information"],
]);
-function handle_hash() {
+function handleHash() {
if (window.location.hash) {
const redirect = redirects.get(window.location.pathname + window.location.hash);
if (redirect) {
@@ -60,7 +60,7 @@ function handle_hash() {
}
}
-handle_hash();
-addEventListener("hashchange", handle_hash, false);
+handleHash();
+addEventListener("hashchange", handleHash, false);
// @license-end