remove debugging refresh rate #74
This commit is contained in:
parent
c6918f0c6c
commit
3a304d7c08
2 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ const init = () => {
|
||||||
['us', 'US'],
|
['us', 'US'],
|
||||||
['si', 'Metric'],
|
['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'],
|
[30_000, 'TESTING'],
|
||||||
[300_000, '5 minutes'],
|
[300_000, '5 minutes'],
|
||||||
[600_000, '10 minutes'],
|
[600_000, '10 minutes'],
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ class Setting {
|
||||||
|
|
||||||
selectHighlight(newValue) {
|
selectHighlight(newValue) {
|
||||||
// set the dropdown to the provided value
|
// 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);
|
elem.selected = (newValue?.toFixed?.(2) === elem.value) || (newValue === elem.value);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue