add scanlines

This commit is contained in:
Matt Walsh
2025-05-29 17:03:50 -05:00
parent 32aa43c5b1
commit 7efd2e8db7
12 changed files with 164 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ const blob = (url, params) => fetchAsync(url, 'blob', params);
const fetchAsync = async (_url, responseType, _params = {}) => {
// add user agent header to json request at api.weather.gov
const headers = {};
if (_url.match(/api\.weather\.gov/)) {
if (_url.toString().match(/api\.weather\.gov/)) {
headers['user-agent'] = 'Weatherstar 4000+; weatherstar@netbymatt.com';
}
// combine default and provided parameters

View File

@@ -189,7 +189,7 @@ class Setting {
break;
case 'checkbox':
default:
this.element.checked = newValue;
this.element.querySelector('input').checked = newValue;
}
this.storeToLocalStorage(this.myValue);