diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-10-17 17:00:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-17 17:00:23 +0000 |
commit | 00557743a6618c2b5321c7ed0d1eede9a2c6e64a (patch) | |
tree | cd60c38c37ce96606d53758d91fda325cf322f0b /result_collection_api/3rd_party/static/o2c.html | |
parent | bc7e5d135b6d7e542ceeac972a14127c7c66163e (diff) | |
parent | 14708169adcacea2b4cd4dd55fb73dfb42862a4e (diff) |
Merge "fix files with MIT or BSD licenses in testapi"
Diffstat (limited to 'result_collection_api/3rd_party/static/o2c.html')
-rw-r--r-- | result_collection_api/3rd_party/static/o2c.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/result_collection_api/3rd_party/static/o2c.html b/result_collection_api/3rd_party/static/o2c.html new file mode 100644 index 0000000..d32d130 --- /dev/null +++ b/result_collection_api/3rd_party/static/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 |