Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-remote-webapp / src / main / webapp / swagger-ui / o2c.html @ bb0121a0

History | View | Annotate | Download (360 Bytes)

1
<script>
2
var qp = null;
3
if(window.location.hash) {
4
  qp = location.hash.substring(1);
5
}
6
else {
7
  qp = location.search.substring(1);
8
}
9
qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}',
10
  function(key, value) {
11
    return key===""?value:decodeURIComponent(value) }
12
  ):{}
13
window.opener.onOAuthComplete(qp);
14
window.close();
15
</script>
Add picture from clipboard (Maximum size: 40 MB)