123456789101112131415161718192021222324252627282930313233 |
- <!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>
|