2017-02-11 08:29:14 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title></title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script>
|
2017-02-28 15:40:36 +00:00
|
|
|
if (window.opener != null && window.opener.onGitHubCallback != null)
|
2017-02-11 08:29:14 +00:00
|
|
|
{
|
2017-02-28 15:40:36 +00:00
|
|
|
try
|
2017-02-11 08:29:14 +00:00
|
|
|
{
|
|
|
|
var search = window.location.search;
|
2017-02-22 13:12:09 +00:00
|
|
|
var idx1 = search.indexOf('code=');
|
|
|
|
var code = null;
|
|
|
|
|
|
|
|
if (idx1 >= 0)
|
|
|
|
{
|
|
|
|
code = search.substring(idx1 + 5);
|
|
|
|
}
|
2017-02-11 08:29:14 +00:00
|
|
|
|
|
|
|
// Continues execution of main program flow
|
|
|
|
window.opener.onGitHubCallback(code, window);
|
|
|
|
}
|
2017-02-28 15:40:36 +00:00
|
|
|
catch (e)
|
|
|
|
{
|
|
|
|
alert('GitHub: ' + e.toString());
|
|
|
|
window.close();
|
|
|
|
}
|
2017-02-11 08:29:14 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|