Bug mit Sprunganker und Query-String behoben.

main
Mitja Stachowiak (Hessen) 2024-04-14 12:10:24 +02:00
parent 12ee6bd0c5
commit c0ef0bdddd
2 changed files with 2 additions and 2 deletions

View File

@ -449,7 +449,7 @@ function DynamicIFrame (FrameBox, debugLogging=false) { with (this) {
return;
}
// Falls verknuepfter menuLink schon bekannt
if (currentSiteAnchors.length != 0 && currentSiteAnchors[anchorPos]['link']) {
if ((currentSiteAnchors.length > anchorPos) && currentSiteAnchors[anchorPos]['link']) {
activateLink(currentSiteAnchors[anchorPos]['link']);
return;
}

View File

@ -154,7 +154,7 @@ function makeupText (win) {
}
function fetchText (win) {
let query = window.location.href.split('?').pop().split('&');
let query = window.location.href.split('#').shift().split('?').pop().split('&');
for (let i = 0; i < query.length; i++) {
query[i] = query[i].split('=');
if (query[i].length == 2 && query[i][0] == 'program') {