mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-24 16:42:01 +00:00
refactor(github) add GitHubProto
This commit is contained in:
parent
c46928d4df
commit
98f2d7a28b
3 changed files with 158 additions and 149 deletions
|
|
@ -3,18 +3,19 @@
|
|||
<head></head>
|
||||
<body>
|
||||
<script>
|
||||
(function(){
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
var lOpener = window.opener;
|
||||
if(lOpener){
|
||||
var CloudCmd = lOpener.CloudCmd;
|
||||
var opener = window.opener;
|
||||
|
||||
if (opener) {
|
||||
var CloudCmd = opener.CloudCmd;
|
||||
|
||||
CloudCmd.getModules(function(pModules){
|
||||
var Util = lOpener.Util,
|
||||
lStorage = Util.findObjByNameInArr(pModules, 'storage'),
|
||||
lGitHub = Util.findObjByNameInArr(lStorage, 'GitHub'),
|
||||
GitHub_ID = lGitHub && lGitHub.key;
|
||||
CloudCmd.getModules(function(pModules) {
|
||||
var Util = opener.Util,
|
||||
Storage = Util.findObjByNameInArr(pModules, 'storage'),
|
||||
GitHub = Util.findObjByNameInArr(Storage, 'GitHub'),
|
||||
GitHub_ID = GitHub && GitHub.key;
|
||||
|
||||
window.location =
|
||||
'https://github.com/login/oauth/authorize?client_id=' +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue