use native style for JavaScript function name
This commit is contained in:
parent
a5ce0d44a8
commit
0a2a791a2c
@ -51,7 +51,7 @@ const redirects = new Map([
|
|||||||
["/install/#further-information", "/install/cli#further-information"],
|
["/install/#further-information", "/install/cli#further-information"],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
function handle_hash() {
|
function handleHash() {
|
||||||
if (window.location.hash) {
|
if (window.location.hash) {
|
||||||
const redirect = redirects.get(window.location.pathname + window.location.hash);
|
const redirect = redirects.get(window.location.pathname + window.location.hash);
|
||||||
if (redirect) {
|
if (redirect) {
|
||||||
@ -60,7 +60,7 @@ function handle_hash() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_hash();
|
handleHash();
|
||||||
addEventListener("hashchange", handle_hash, false);
|
addEventListener("hashchange", handleHash, false);
|
||||||
|
|
||||||
// @license-end
|
// @license-end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user