mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-21 02:59:31 -07:00
remove debugging refresh rate #74
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user