Commit 2ef1b300 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_officejs: Simplify dropbox redirect in bootloader

parent 0ea4f6ff
Pipeline #18510 failed with stage
in 0 seconds
...@@ -94,10 +94,8 @@ var repair = false; ...@@ -94,10 +94,8 @@ var repair = false;
if (hash_properties.hasOwnProperty('access_token')) { if (hash_properties.hasOwnProperty('access_token')) {
// This is a bad hack to support dropbox. // This is a bad hack to support dropbox.
gadget.props.redirect_url.hash = gadget.props.redirect_url.hash =
gadget.props.redirect_url.hash.replace("#", "#/?").replace( gadget.props.redirect_url.hash
'access_token', .replace("#", "#/?page=ojs_dropbox_configurator&");
'page=ojs_dropbox_configurator&access_token'
);
} else if (gadget.props.redirect_url.hash } else if (gadget.props.redirect_url.hash
.startsWith('#page=settings_configurator')) { .startsWith('#page=settings_configurator')) {
// Make monitoring app still compatible with old instances setup URLs // Make monitoring app still compatible with old instances setup URLs
......
...@@ -61,6 +61,12 @@ ...@@ -61,6 +61,12 @@
</tuple> </tuple>
</value> </value>
</item> </item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>content_md5</string> </key> <key> <string>content_md5</string> </key>
<value> <value>
...@@ -240,7 +246,7 @@ ...@@ -240,7 +246,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>983.27330.42899.26726</string> </value> <value> <string>996.26493.30077.17766</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -258,7 +264,7 @@ ...@@ -258,7 +264,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1587734784.31</float> <float>1637925065.64</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