Commit c36bc70a authored by Romain Courteaud's avatar Romain Courteaud

XXX erp5_web_renderjs_ui: prototype offline status

parent 8cb3e8ca
......@@ -904,6 +904,18 @@
render_timestamp: new Date().getTime()
})
.push(undefined, function (error) {
// couscous
if (!navigator.onLine) {
window.addEventListener('online',
function backOnline() {
return location.reload();
});
return;
}
throw error;
})
.push(undefined, function (error) {
return displayError(gadget, error);
});
})
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>995.11501.24323.42837</string> </value>
<value> <string>993.36084.15186.27323</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1633093329.42</float>
<float>1626790595.79</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