Fixing package link issue: prototype
This commit is contained in:
parent
f29f11848d
commit
1160852d0e
1 changed files with 1 additions and 4 deletions
|
@ -29,10 +29,7 @@ doCORSRequest({
|
||||||
const forbidden_links = ["Name", "Last modified", "Size", "Description", "Parent Directory"];
|
const forbidden_links = ["Name", "Last modified", "Size", "Description", "Parent Directory"];
|
||||||
if (!forbidden_links.includes(link.innerHTML.trim())) {
|
if (!forbidden_links.includes(link.innerHTML.trim())) {
|
||||||
const link_e = document.createElement("a");
|
const link_e = document.createElement("a");
|
||||||
const new_href = link.href
|
const new_href = link.href.replace("/Oreon-lime-(R1)/", "/oreonproject/oreon-lime/")
|
||||||
.replace("http://127.0.0.1:5500/", "https://packages.boostyconnect.com/oreonproject/oreon-lime/")
|
|
||||||
.replace("/Oreon-lime-(R1)", "");
|
|
||||||
|
|
||||||
link_e.href = new_href;
|
link_e.href = new_href;
|
||||||
link_e.innerHTML = link.innerHTML;
|
link_e.innerHTML = link.innerHTML;
|
||||||
link_e.className = "package";
|
link_e.className = "package";
|
||||||
|
|
Loading…
Reference in a new issue