drawio/war/github.html
Gaudenz Alder 5798efc85f 6.2.3 release
Former-commit-id: 3dc20ef7b4
2017-02-28 16:40:36 +01:00

32 lines
581 B
HTML

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script>
if (window.opener != null && window.opener.onGitHubCallback != null)
{
try
{
var search = window.location.search;
var idx1 = search.indexOf('code=');
var code = null;
if (idx1 >= 0)
{
code = search.substring(idx1 + 5);
}
// Continues execution of main program flow
window.opener.onGitHubCallback(code, window);
}
catch (e)
{
alert('GitHub: ' + e.toString());
window.close();
}
}
</script>
</body>
</html>