This commit is contained in:
Mateusz Gruszczyński committed 2026-11-25 15:47:34 +01:00
1 parent 6df256cdbb
commit 0d6249e383
159 files changed
+16737 -1971

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@
const requestedTab = typeof location !== "undefined" && location.pathname === "/logging"
? "logging"
: (typeof location !== "undefined" && location.pathname === "/settings" ? new URLSearchParams(location.search).get("tab") : null);
const tabAliases = { http2: "connections", headers: "policies", response: "policies" };
const tabAliases = { http2: "connections", headers: "policies", response: "policies", policy: "policies" };
function pinnedAdminHostname(value) {
try {
const url = new URL(value);
@@ -91,7 +91,7 @@
event.preventDefault(); selectPolicyTab(policyTabs[next].dataset.policySettingsTab, true);
});
}
selectPolicyTab(["headers", "response", "security-headers", "block-allow"].includes(requestedTab) ? requestedTab : "block-allow");
selectPolicyTab(["headers", "policy", "response", "security-headers", "block-allow"].includes(requestedTab) ? requestedTab : "block-allow");
const cacheTabs = [...document.querySelectorAll("[data-cache-settings-tab]")];
function selectCacheTab(name, focus = false) {
if (!cacheTabs.some(button => button.dataset.cacheSettingsTab === name)) return;