mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
24 lines
No EOL
719 B
HTML
24 lines
No EOL
719 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head></head>
|
|
<body>
|
|
<script>
|
|
(function(){
|
|
"use strict";
|
|
|
|
if(window.opener){
|
|
var cloudcmd = window.opener.CloudCommander;
|
|
|
|
cloudcmd.getConfig(function(pConfig){
|
|
var lGitHub = pConfig.github,
|
|
GitHub_ID = lGitHub && lGitHub.key;
|
|
|
|
window.location =
|
|
'https://github.com/login/oauth/authorize?client_id=' +
|
|
GitHub_ID + '&&scope=repo,user,gist';
|
|
});
|
|
}
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html> |