Commit 5c5bb8e2 authored by Vincent Bechu's avatar Vincent Bechu Committed by Eteri

erp5_officejs: service worker error make installer crash

parent 6535bec6
...@@ -56,6 +56,7 @@ var global = self, window = self; ...@@ -56,6 +56,7 @@ var global = self, window = self;
}); });
}) })
.push(undefined, function (error) { .push(undefined, function (error) {
if (error instanceof self.jIO.util.jIOError) {
self.console.log( self.console.log(
"Relative_Url: ", "Relative_Url: ",
relative_url, relative_url,
...@@ -63,6 +64,8 @@ var global = self, window = self; ...@@ -63,6 +64,8 @@ var global = self, window = self;
error.message error.message
); );
return fetch(event.request); return fetch(event.request);
}
return new Response(error, {"statusText": error.message, "status": 500});
}) })
); );
}); });
......
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>958.61563.34886.11246</string> </value> <value> <string>959.7534.37330.9540</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1493383031.83</float> <float>1493803503.24</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