Commit 99cf3c1f authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: content-type header can be null

Like when the browser is offline.
parent 01eea92c
......@@ -156,7 +156,8 @@
}
}
if (error instanceof XMLHttpRequest) {
if (error.getResponseHeader('Content-Type').indexOf('text/') === 0) {
if ((error.getResponseHeader('Content-Type') || "")
.indexOf('text/') === 0) {
error_response = error.response;
}
error = {
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>982.16935.24089.33911</string> </value>
<value> <string>982.26879.4100.14950</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1583166534.25</float>
<float>1585300343.55</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment