feat: Create the getSelectedPool() helper
This commit is contained in:
@@ -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",
|
||||
() => {
|
||||
|
Reference in New Issue
Block a user