Spaces:
Running
Running
Commit ·
c17a188
1
Parent(s): a3611db
Fix inline API panel selector clobbering HF_TOKEN code span
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -2741,7 +2741,7 @@ const API_PANEL_TABS_HTML = `
|
|
| 2741 |
function paintInlinePanel(panel) {
|
| 2742 |
const feature = panel.dataset.feature;
|
| 2743 |
panel.querySelectorAll(".api-tab").forEach(t => t.classList.toggle("active", t.dataset.lang === currentApiLang));
|
| 2744 |
-
panel.querySelector("code").textContent = API_SNIPPETS[feature][currentApiLang];
|
| 2745 |
}
|
| 2746 |
|
| 2747 |
window.togglePageApi = function(feature, btn) {
|
|
|
|
| 2741 |
function paintInlinePanel(panel) {
|
| 2742 |
const feature = panel.dataset.feature;
|
| 2743 |
panel.querySelectorAll(".api-tab").forEach(t => t.classList.toggle("active", t.dataset.lang === currentApiLang));
|
| 2744 |
+
panel.querySelector(".code-block code").textContent = API_SNIPPETS[feature][currentApiLang];
|
| 2745 |
}
|
| 2746 |
|
| 2747 |
window.togglePageApi = function(feature, btn) {
|