Commit 8379e8b2 authored by Valentin Benozillo's avatar Valentin Benozillo Committed by Vincent Bechu

[erp5_officejs] Fix progressive app accept update from officejs.com

if you push a new release on office.com the url of your app change "[your_app].app.officejs.com/[release_number]. The solution is to change the strating page to [your_app].app.officejs.com by puting the right relative url "../" or "../../" dependting on the manifest.
CAUTION : This relatibve url, as starting point, don't work on an ERP5 instance. Because your app is located to : [instance_url]/erp5/web_site_module/[your_app]
parent a809a878
......@@ -2,10 +2,10 @@
"short_name": "OfficeJS Smart Assistant",
"name": "OfficeJS Smart Assistant",
"icons": [{
"src": "image_module/gadget_officejs_smart_assistant_icon_png?quality=75&format=png",
"src": "officejs_smart_assistant_icon.png",
"sizes": "any",
"type": "image/png"
}],
"start_url": "./",
"start_url": "../",
"display": "standalone"
}
\ No newline at end of file
......@@ -235,7 +235,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>966.31177.36628.1467</string> </value>
<value> <string>967.24929.45867.55074</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -253,7 +253,7 @@
</tuple>
<state>
<tuple>
<float>1525358514.78</float>
<float>1525700769.91</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -2,10 +2,10 @@
"short_name": "OfficeJS Smart Assistant",
"name": "OfficeJS Smart Assistant",
"icons": [{
"src": "image_module/gadget_officejs_smart_assistant_icon_png?quality=75&format=png",
"src": "officejs_smart_assistant_icon.png",
"sizes": "any",
"type": "image/png"
}],
"start_url": "../",
"start_url": "../../",
"display": "standalone"
}
\ No newline at end of file
......@@ -235,7 +235,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>966.31177.36628.1467</string> </value>
<value> <string>967.24929.36111.53555</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -253,7 +253,7 @@
</tuple>
<state>
<tuple>
<float>1525358502.18</float>
<float>1525700760.57</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -113,6 +113,9 @@
# XXX + fonts\n
# images/ajax-loader.gif\n
CACHE:\n
officejs_smart_assistant_icon.png\n
gadget_officejs_json_manifest_smart_assistant_install.json\n
gadget_officejs_json_manifest_smart_assistant.json\n
gadget_officejs_smart_assistant.css\n
gadget_custom_player.html\n
gadget_custom_player.js\n
......@@ -725,7 +728,7 @@ NETWORK:\n
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>967.17920.7162.22630</string> </value>
<value> <string>967.24873.52661.51575</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -743,7 +746,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>1525278823.67</float>
<float>1525699250.39</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