Skip to content

Commit

Permalink
custom: update
Browse files Browse the repository at this point in the history
Signed-off-by: AuxXxilium <[email protected]>
  • Loading branch information
AuxXxilium committed Sep 7, 2024
1 parent a94a362 commit 634062a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
var html = `<div class="form-group-body" id="addons_btns">`;
var selectedModel = $("#model").val();
var platform = null;

// Parse models.json to get the platform for the selected model
$.getJSON('models.json', function(modelsData) {
for (var key in modelsData) {
Expand All @@ -142,12 +142,17 @@
break;
}
}

// Parse addons.json to generate buttons
$.getJSON('addons.json', function(addonsData) {
for (var ext in addonsData) {
// Skip system addons
if (addonsData[ext]["system"] == true) {
continue;
}

var dispar = "";
if (addonsData[ext]["system"] == true || !addonsData[ext][platform]) {
if (!addonsData[ext][platform]) {
dispar = "disabled";
}
var par = "";
Expand Down

0 comments on commit 634062a

Please sign in to comment.