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