Commit a2c16bf2 authored by Roque's avatar Roque

erp5_officejs: url manifest added in log error for appcachestorage gadget

parent d068e37f
...@@ -87,13 +87,14 @@ ...@@ -87,13 +87,14 @@
}; };
AppCacheStorage.prototype.repair = function () { AppCacheStorage.prototype.repair = function () {
var storage = this; var storage = this, url = "";
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
url = new URL(storage._manifest, new URL(storage._version,
storage._origin_url));
return jIO.util.ajax({ return jIO.util.ajax({
type: "GET", type: "GET",
url: new URL(storage._manifest, new URL(storage._version, url: url
storage._origin_url))
}); });
}) })
.push(function (response) { .push(function (response) {
...@@ -123,7 +124,7 @@ ...@@ -123,7 +124,7 @@
}) })
.push(undefined, function (error) { .push(undefined, function (error) {
if (!error.message) { if (!error.message) {
error.message = "Can't get manifest"; error.message = "Can't get manifest. URL: " + url;
} }
throw error; throw error;
}); });
......
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