summaryrefslogtreecommitdiff
path: root/frontend/script.js
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-04-06 21:45:07 -0700
committerLouie S <louie@example.com>2023-04-06 21:45:07 -0700
commit532515d41a8e2ce914ac7c9e01c41044ebd62452 (patch)
tree8d651a5f0cc0cedd59578bfc450126246b17b592 /frontend/script.js
parentcdd588607bc63b65217f87f75ab22bad9fd0fc1c (diff)
Set correct index pagesHEADmaster
Diffstat (limited to 'frontend/script.js')
-rw-r--r--frontend/script.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/script.js b/frontend/script.js
index 6f4775e..20f5b08 100644
--- a/frontend/script.js
+++ b/frontend/script.js
@@ -9,7 +9,8 @@ function populateSearchBar(docset_json) {
// Add to docset-table
document.getElementById("docset-table").getElementsByTagName("tbody")[0].innerHTML += "<tr>" +
"<td scope=\"row\">" +
- "<button id=\"docset-" + docset_json["CFBundleIdentifier"] + "-parent\" class=\"docset-parent\" onclick=\"set_embed_page('" + docset_json["docset_root"] + "')\">" +
+ "<button id=\"docset-" + docset_json["CFBundleIdentifier"] + "-parent\" class=\"docset-parent\" onclick=\"set_embed_page('" + docset_json["docset_index"] + "')\">" +
+ "<img class=\"docset-icon\" src=\"" + docset_json["icon.png"] + "\"/>" +
docset_json["CFBundleName"] +
"</button>" +
"</td>" +