Skip to content
Snippets Groups Projects

fix: follow redirects

Merged Hahn Axel (hahn) requested to merge 7728-handle-http-and-https-redirects into master
4 files
+ 27
15
Compare changes
  • Side-by-side
  • Inline

Files

+ 8
4
@@ -5,6 +5,7 @@
*
* ----------------------------------------------------------------------
* 2022-05-23 ah v0.1 initial version
* 2025-01-13 ah v1.0 colorize clicked testlink in dependency of the result
* ======================================================================
*/
@@ -46,10 +47,13 @@ async function showInOverlay(oLink){
show(body);
// colorize clicked link
var myspan=document.getElementsByClassName("status")[0];
var myclass=myspan.className.replace("status ","");
oLink.className=myclass;
oLink.title=myspan.innerText;
var spans=document.getElementsByClassName("status");
if(spans){
var myspan=spans[spans.length-1];
var myclass=myspan.className.replace("status ","");
oLink.className=myclass;
oLink.title=myspan.innerText;
}
} else {
show("HTTP-Error: " + response.status);
}
Loading