3 if(window.location.hash) {
\r
4 qp = location.hash.substring(1);
\r
7 qp = location.search.substring(1);
\r
9 qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}',
\r
10 function(key, value) {
\r
11 return key===""?value:decodeURIComponent(value) }
\r
14 if (window.opener.swaggerUi.tokenUrl)
\r
15 window.opener.processOAuthCode(qp);
\r
17 window.opener.onOAuthComplete(qp);
\r