Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

21 linhas
489 B

  1. <script>
  2. var qp = null;
  3. if(window.location.hash && 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. if (window.opener.swaggerUiAuth.tokenUrl)
  14. window.opener.processOAuthCode(qp);
  15. else
  16. window.opener.onOAuthComplete(qp);
  17. window.close();
  18. </script>