diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.js b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.js index f289fe58834ab2efdf02985d16a2991f82e1bfff..a546827d9ac551b696f4ed80ef2be4a1d90c2c1a 100644 --- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.js +++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.js @@ -47,13 +47,10 @@ var global = self, window = self; }); self.addEventListener("fetch", function (event) { - var relative_url = event.request.url.split("#")[0] + var relative_url = './' + event.request.url.split("#")[0] .replace(self.registration.scope, "") .replace(self.version_url, ""); - if (relative_url === "") { - relative_url = "/"; - } - if (relative_url === 'no-cache') { + if (relative_url === './no-cache') { event.respondWith(new Response(self.cache_list)); return; } diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.xml b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.xml index d4fcfd0e3f1ff54bf9bbc6d7b615c1ce30edc0f1..bb76cf52efaef86c41b88df5eb11739fc1517c71 100644 --- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.xml +++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.xml @@ -213,7 +213,7 @@ </item> <item> <key> <string>actor</string> </key> - <value> <string>zope</string> </value> + <value> <string>vincent</string> </value> </item> <item> <key> <string>comment</string> </key> @@ -227,7 +227,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>961.30858.43041.57309</string> </value> + <value> <string>963.3430.40377.1177</string> </value> </item> <item> <key> <string>state</string> </key> @@ -245,7 +245,7 @@ </tuple> <state> <tuple> - <float>1502980874.99</float> + <float>1509458653.61</float> <string>UTC</string> </tuple> </state> diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.js b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.js index f48dab82634fb128cf37b18b897046d8f6be9198..aab569dfd56e39860906970d55132f85549219a1 100644 --- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.js +++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.js @@ -13,12 +13,12 @@ spec.origin_url : window.location.href; this._version = spec.version || ""; this._gadget_list = []; - this._prefix = spec.prefix || ""; + this._prefix = spec.prefix || "./"; this._documents = {}; // Harcoded here, find a better way. if (this._take_installer) { this._relative_url_list = [ - this._prefix + "/", + this._prefix, this._prefix + "gadget_officejs_bootloader.js", this._prefix + "gadget_officejs_bootloader_presentation.html", this._prefix + "gadget_officejs_bootloader_presentation.js", @@ -57,9 +57,6 @@ return new Blob([]); }); } - if (relative_url === '/') { - relative_url = ''; - } return new RSVP.Queue() .push(function () { return jIO.util.ajax({ diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.xml b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.xml index db912b3ede4d2483ff475c676c19445efecc17cf..3f8fb0090f31f133e5abdb3e40c67d25d8a0b593 100644 --- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.xml +++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.xml @@ -225,7 +225,7 @@ </item> <item> <key> <string>actor</string> </key> - <value> <string>zope</string> </value> + <value> <string>vincent</string> </value> </item> <item> <key> <string>comment</string> </key> @@ -239,7 +239,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>963.8873.18455.40004</string> </value> + <value> <string>963.9196.27669.54835</string> </value> </item> <item> <key> <string>state</string> </key> @@ -257,7 +257,7 @@ </tuple> <state> <tuple> - <float>1509439359.17</float> + <float>1509459715.1</float> <string>UTC</string> </tuple> </state>