remove debugging refresh rate #74

This commit is contained in:
Matt Walsh
2025-04-06 21:31:42 -05:00
parent c6918f0c6c
commit 3a304d7c08
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ const init = () => {
['us', 'US'],
['si', 'Metric'],
]);
settings.refreshTime = new Setting('refreshTime', 'Refresh Time', 'select', 30_000, null, false, [
settings.refreshTime = new Setting('refreshTime', 'Refresh Time', 'select', 600_000, null, false, [
[30_000, 'TESTING'],
[300_000, '5 minutes'],
[600_000, '10 minutes'],

View File

@@ -181,7 +181,7 @@ class Setting {
selectHighlight(newValue) {
// set the dropdown to the provided value
this.element.querySelectorAll('option').forEach((elem) => {
this?.element?.querySelectorAll('option')?.forEach?.((elem) => {
elem.selected = (newValue?.toFixed?.(2) === elem.value) || (newValue === elem.value);
});
}