Commit 2f0651f6 authored by Roque's avatar Roque

erp5_officejs: extra controls in appcachestorage sync error handling

parent ed1e1e5a
......@@ -171,7 +171,7 @@
});
}, function (error) {
console.log("Error while appcache-local storage synchronization");
if (error.currentTarget.status == "401") {
if (error && error.currentTarget && error.currentTarget.status == "401") {
console.log("Unauthorized access to storage, sync cancelled");
return;
}
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>974.29947.29457.36147</string> </value>
<value> <string>974.29979.40844.25856</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1553007300.28</float>
<float>1553009106.08</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