Fixing package link issue: prototype

This commit is contained in:
Evilcoder 2024-07-18 22:52:16 +02:00
parent f29f11848d
commit 1160852d0e

View file

@ -29,10 +29,7 @@ doCORSRequest({
const forbidden_links = ["Name", "Last modified", "Size", "Description", "Parent Directory"];
if (!forbidden_links.includes(link.innerHTML.trim())) {
const link_e = document.createElement("a");
const new_href = link.href
.replace("http://127.0.0.1:5500/", "https://packages.boostyconnect.com/oreonproject/oreon-lime/")
.replace("/Oreon-lime-(R1)", "");
const new_href = link.href.replace("/Oreon-lime-(R1)/", "/oreonproject/oreon-lime/")
link_e.href = new_href;
link_e.innerHTML = link.innerHTML;
link_e.className = "package";