mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
27 lines
No EOL
892 B
HTML
27 lines
No EOL
892 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head></head>
|
|
<body>
|
|
<script>
|
|
(function(){
|
|
"use strict";
|
|
|
|
var lOpener = window.opener;
|
|
if(lOpener){
|
|
var cloudcmd = lOpener.CloudCommander;
|
|
|
|
cloudcmd.getModules(function(pModules){
|
|
var Util = lOpener.Util,
|
|
lStorage = Util.findObjByNameInArr(pModules, 'storage'),
|
|
lGitHub = Util.findObjByNameInArr(lStorage, '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> |