Skip to content

Commit

Permalink
Profile Viewer: Fix nightwave syndicate
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Sep 13, 2024
1 parent f1b0b97 commit 54c56a8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
"EntratiLabSyndicate",

"KahlSyndicate",
"RadioLegionIntermission10Syndicate",
"NIGHTWAVE",
"LibrarySyndicate",
"ConclaveSyndicate",
"EventSyndicate",
Expand Down Expand Up @@ -434,6 +434,7 @@ function makeSyndicateLogoElement(syndicate)
fetch("https://browse.wf/warframe-public-export-plus/ExportCustoms.json").then(res => res.json()),
fetch("https://browse.wf/warframe-public-export-plus/ExportEnemies.json").then(res => res.json()),
fetch("https://browse.wf/warframe-public-export-plus/ExportFlavour.json").then(res => res.json()),
fetch("https://browse.wf/warframe-public-export-plus/ExportNightwave.json").then(res => res.json()),
fetch("https://browse.wf/warframe-public-export-plus/ExportRegions.json").then(res => res.json()),
fetch("https://browse.wf/warframe-public-export-plus/ExportSentinels.json").then(res => res.json()),
fetch("https://browse.wf/warframe-public-export-plus/ExportSyndicates.json").then(res => res.json()),
Expand All @@ -446,6 +447,7 @@ function makeSyndicateLogoElement(syndicate)
ExportCustoms,
ExportEnemies,
ExportFlavour,
ExportNightwave,
ExportRegions,
ExportSentinels,
ExportSyndicates,
Expand All @@ -467,6 +469,14 @@ function makeSyndicateLogoElement(syndicate)
window.profile = profile;
//window.profile = { Results: [ { DisplayName: "asdasdasd", Created: { $date: { $numberLong: "1364064293561" } } } ] };

for (let i = 0; i != syndicateTags.length; ++i)
{
if (syndicateTags[i] == "NIGHTWAVE")
{
syndicateTags[i] = ExportNightwave.affiliationTag;
}
}

document.getElementById("profile-nav").classList.remove("d-none");
activateTab(params.has("tab") ? params.get("tab") : "fashion"); // default tab

Expand Down

0 comments on commit 54c56a8

Please sign in to comment.