This commit is contained in:
binwiederhier
2026-03-14 14:21:09 -04:00
parent 2bf8f6271b
commit 22868f4742

View File

@@ -1034,11 +1034,8 @@
// Re-prefill base-url
const baseUrlInput = modal.querySelector("[data-key=\"base-url\"]");
if (baseUrlInput) {
const host = window.location.hostname;
if (host && !host.includes("ntfy.sh")) {
baseUrlInput.value = "https://ntfy.example.com";
}
}
// Reset to General tab
switchPanel(modal, "cg-panel-general");
updateVisibility(els);
@@ -1322,14 +1319,11 @@
setupFormListeners(els);
setupWebPushEvents(els);
// Pre-fill base-url if not on ntfy.sh
// Pre-fill base-url
const baseUrlInput = modal.querySelector("[data-key=\"base-url\"]");
if (baseUrlInput && !baseUrlInput.value.trim()) {
const host = window.location.hostname;
if (host && !host.includes("ntfy.sh")) {
baseUrlInput.value = "https://ntfy.example.com";
}
}
// Auto-open if URL hash points to config generator
if (window.location.hash === "#config-generator") {