Explorar el Código

Fix async previous value response parsing

SybexXx hace 1 día
padre
commit
c98e27d4b4
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      sd-card/html/prevalue_set.html

+ 2 - 2
sd-card/html/prevalue_set.html

@@ -186,9 +186,9 @@
                 throw new Error(rawResponse.statusText);
             }
 
-            const lines = (await rawResponse.text()).split(/\\r?\\n/);
+            const lines = (await rawResponse.text()).split(/\r?\n/);
             for (const line of lines) {
-                const values = line.split("\\t");
+                const values = line.split("\t");
                 if (number === values[0]) {
                     document.getElementById("myInput").value = Number(values[1]);
                     break;