mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
27 lines
No EOL
872 B
HTML
27 lines
No EOL
872 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head></head>
|
|
<body>
|
|
<script>
|
|
|
|
var Util;
|
|
(function(Util){
|
|
"use strict";
|
|
|
|
if(window.opener){
|
|
var cloudcmd = window.opener.CloudCommander;
|
|
|
|
cloudcmd.getModules(function(pModules){
|
|
var 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';
|
|
});
|
|
}
|
|
})(Util);
|
|
</script>
|
|
</body>
|
|
</html> |