Commit 58d246ca authored by Romain Courteaud's avatar Romain Courteaud

xxx offline

parent a81a35e6
...@@ -904,20 +904,20 @@ ...@@ -904,20 +904,20 @@
render_timestamp: new Date().getTime() render_timestamp: new Date().getTime()
}) })
.push(undefined, function (error) { .push(undefined, function (error) {
// couscous
if (!navigator.onLine) { if (!navigator.onLine) {
console.log('not online'); return route(gadget, 'translation_gadget', 'translate',
return gadget.changeState({ ['You are offline.'])
error_text: 'Offline', .push(function (message) {
// request_error_text: request_error_text, return route(gadget, "notification", 'notify',
url: undefined [{
"message": message,
"status": "error"
}]);
}) })
.push(function () { .push(function () {
return rJS.loopEventListener(window, 'online', false, return rJS.loopEventListener(window, 'online', false,
function backOnline() { function backOnline() {
console.log('let reload'); return location.reload();
return gadget.render(route_result, keep_message);
// return location.reload();
}); });
}); });
} }
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>993.36177.33163.46728</string> </value> <value> <string>993.37256.4522.58726</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1626796612.69</float> <float>1626860658.98</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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