Sha256: 6f7c74768cf76b07d5665d55492274f31dfa67caac613f510526516d99f59499
Contents?: true
Size: 498 Bytes
Versions: 15
Compression:
Stored size: 498 Bytes
Contents
function getQueryVariable(variable) { var query = window.location.hash.substring(1); var vars = query.split('&'); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split('='); if (decodeURIComponent(pair[0]) == variable) { return decodeURIComponent(pair[1]); } } console.log('Query variable %s not found', variable); } var id_token = getQueryVariable('id_token') window.opener.refreshLogin(id_token) window.close()
Version data entries
15 entries across 15 versions & 1 rubygems