mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
26 lines
No EOL
841 B
HTML
26 lines
No EOL
841 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head></head>
|
|
<body>
|
|
<script>
|
|
(function() {
|
|
"use strict";
|
|
|
|
var opener = window.opener;
|
|
|
|
if (opener) {
|
|
DOM.Files.get('modules', function(error, modules) {
|
|
var Util = opener.Util,
|
|
Storage = Util.findObjByNameInArr(modules, 'storage'),
|
|
GitHub = Util.findObjByNameInArr(Storage, 'GitHub'),
|
|
GitHub_ID = GitHub && GitHub.key;
|
|
|
|
window.location =
|
|
'https://github.com/login/oauth/authorize?client_id=' +
|
|
GitHub_ID + '&&scope=repo,user,gist';
|
|
});
|
|
}
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html> |