feat: Create the getSelectedPool() helper

This commit is contained in:
2025-06-11 20:05:06 +02:00
parent b6f44f938a
commit dfbf305206

View File

@@ -618,6 +618,12 @@
return String(str).charAt(0).toUpperCase() + String(str).slice(1);
};
const getSelectedPool = () => {
var currentPoolSelector = document.querySelector("input[name=pool-selector]:checked");
return (currentPoolSelector === null) ? null : currentPoolSelector.value;
};
document.addEventListener(
"DOMContentLoaded",
() => {