fix webserial is now in local timezone

This commit is contained in:
lumapu 2022-10-22 01:28:14 +02:00
parent 72219cdf17
commit a77bea55d0
6 changed files with 27 additions and 11 deletions

View file

@ -19,8 +19,10 @@ function getAjax(url, ptr, method="GET", json=null) {
}
function p() {
if(xhr.readyState == 4) {
if(null != xhr.responseText)
ptr(JSON.parse(xhr.responseText));
if(null != xhr.responseText) {
if(null != ptr)
ptr(JSON.parse(xhr.responseText));
}
}
}
}