From 05108146637b9440bd7182b22530352ac31f2d84 Mon Sep 17 00:00:00 2001
From: Vincent Bechu <vincent.bechu@nexedi.com>
Date: Tue, 13 Jun 2017 13:17:10 +0000
Subject: [PATCH] erp5_officejs: update bootloader service worker for latest
 chrome and firefox version

/reviewed-on https://lab.nexedi.com/nexedi/erp5/merge_requests/290
---
 .../gadget_officejs_bootloader_serviceworker_js.js            | 3 ++-
 .../gadget_officejs_bootloader_serviceworker_js.xml           | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

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 79f27a8408..bc6e02c2b2 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
@@ -35,7 +35,8 @@ var global = self, window = self;
   });
 
   self.addEventListener("fetch", function (event) {
-    var relative_url = event.request.url.replace(self.registration.scope, "")
+    var relative_url = event.request.url.split("#")[0]
+      .replace(self.registration.scope, "")
       .replace(self.version_url, "");
     if (relative_url === "") {
       relative_url = self.registration.scope;
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 bc1ac466b4..4e07735544 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
@@ -227,7 +227,7 @@
             </item>
             <item>
                 <key> <string>serial</string> </key>
-                <value> <string>959.7534.37330.9540</string> </value>
+                <value> <string>959.27737.62903.2116</string> </value>
             </item>
             <item>
                 <key> <string>state</string> </key>
@@ -245,7 +245,7 @@
                     </tuple>
                     <state>
                       <tuple>
-                        <float>1493803503.24</float>
+                        <float>1497359632.58</float>
                         <string>UTC</string>
                       </tuple>
                     </state>
-- 
2.30.9