Commit 93b165a6 authored by Vincent Bechu's avatar Vincent Bechu Committed by preetwinder

[erp5_officejs] Change redirection hash in bootloader to support dropbox

parent e75409a9
...@@ -57,6 +57,14 @@ var repair = false; ...@@ -57,6 +57,14 @@ var repair = false;
} }
state.redirect_url = new URL(window.location); state.redirect_url = new URL(window.location);
state.redirect_url.pathname += state.version_url; state.redirect_url.pathname += state.version_url;
// This is a bad hack to support dropbox.
if (state.redirect_url.hash &&
state.redirect_url.hash.startsWith('#access_token')) {
state.redirect_url.hash = state.redirect_url.hash.replace(
'#access_token',
'#/?page=ojs_dropbox_configurator&access_token'
);
}
return gadget.changeState(state); return gadget.changeState(state);
}) })
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.19383.11182.45687</string> </value> <value> <string>961.26414.56459.45721</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1502291956.98</float> <float>1502715948.13</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