mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
JavaScript Refactor p1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Marks anchors, if anchors are present in the URL
|
||||
const markanchor = function () {
|
||||
const startup_markanchor = function () {
|
||||
var currentUrl = document.URL,
|
||||
urlParts = currentUrl.split('#');
|
||||
var anchor = (urlParts.length > 1) ? urlParts[1] : null;
|
||||
@@ -19,4 +19,4 @@ const markanchor = function () {
|
||||
}
|
||||
}
|
||||
|
||||
markanchor();
|
||||
startup_markanchor();
|
||||
Reference in New Issue
Block a user