From c0ef0bdddd56cce29d613a646ed07411baeb8f40 Mon Sep 17 00:00:00 2001 From: Mitja Stachowiak Date: Sun, 14 Apr 2024 12:10:24 +0200 Subject: [PATCH] Bug mit Sprunganker und Query-String behoben. --- js/DynamicIFrame.js | 2 +- js/fetchText.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/DynamicIFrame.js b/js/DynamicIFrame.js index 3723c94..b12f84f 100644 --- a/js/DynamicIFrame.js +++ b/js/DynamicIFrame.js @@ -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; } diff --git a/js/fetchText.js b/js/fetchText.js index e5351ad..1a25111 100644 --- a/js/fetchText.js +++ b/js/fetchText.js @@ -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') {