diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2017-05-18 01:00:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-18 01:00:40 +0000 |
commit | 26215c783dd2eb900eb0e987bd9b3b850c05e3fe (patch) | |
tree | 6184aadeb8753fec3213fef3a529726a1cd3dc45 /utils/test/testapi/3rd_party/static/swagger/o2c.html | |
parent | 8952b1d73c5ac50f7267c89a19ab83b6664fade5 (diff) | |
parent | a1a745b4820ec46a2e707d77f6178cf9e97654f6 (diff) |
Merge "refactor static_path to accomodate web portal"
Diffstat (limited to 'utils/test/testapi/3rd_party/static/swagger/o2c.html')
-rw-r--r-- | utils/test/testapi/3rd_party/static/swagger/o2c.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/test/testapi/3rd_party/static/swagger/o2c.html b/utils/test/testapi/3rd_party/static/swagger/o2c.html new file mode 100644 index 000000000..d32d130ec --- /dev/null +++ b/utils/test/testapi/3rd_party/static/swagger/o2c.html @@ -0,0 +1,15 @@ +<script> +var qp = null; +if(window.location.hash) { + qp = location.hash.substring(1); +} +else { + qp = location.search.substring(1); +} +qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}', + function(key, value) { + return key===""?value:decodeURIComponent(value) } + ):{} +window.opener.onOAuthComplete(qp); +window.close(); +</script>
\ No newline at end of file |