diff options
author | Jakob Odersky <jakob@driver.xyz> | 2018-06-29 15:26:09 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@driver.xyz> | 2018-06-29 15:26:09 -0700 |
commit | 901b02274fdfc08030443aac2f1760fc479b3816 (patch) | |
tree | 5d5f6d6d58fc9caa22eb836ccf70936a5b45ab81 /jvm/src/main/resources/swagger-ui/o2c.html | |
parent | 981cc63b94c6df5fc8f4d2f6ebafd1a6f27d7c4e (diff) | |
download | driver-core-901b02274fdfc08030443aac2f1760fc479b3816.tar.gz driver-core-901b02274fdfc08030443aac2f1760fc479b3816.tar.bz2 driver-core-901b02274fdfc08030443aac2f1760fc479b3816.zip |
Add build support for ScalaJS
Diffstat (limited to 'jvm/src/main/resources/swagger-ui/o2c.html')
-rw-r--r-- | jvm/src/main/resources/swagger-ui/o2c.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/jvm/src/main/resources/swagger-ui/o2c.html b/jvm/src/main/resources/swagger-ui/o2c.html new file mode 100644 index 0000000..88e8bf1 --- /dev/null +++ b/jvm/src/main/resources/swagger-ui/o2c.html @@ -0,0 +1,20 @@ +<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) } + ):{} + +if (window.opener.swaggerUi.tokenUrl) + window.opener.processOAuthCode(qp); +else + window.opener.onOAuthComplete(qp); + +window.close(); +</script>
\ No newline at end of file |