fix(github) rm code

This commit is contained in:
coderaiser 2014-03-05 11:10:46 -05:00
parent b74ff62ccd
commit a0c4ebca0f
2 changed files with 4 additions and 4 deletions

View file

@ -53,7 +53,7 @@ var CloudCmd, Util, DOM, CloudFunc, Github, cb;
GitHub.autorize = function(callback, code) {
Storage.get('token', function(token) {
var code, isContain,
var isContain,
URL = '//' + window.location.host + '/auth/github';
if (token) {

View file

@ -53,12 +53,12 @@
storage = Util.findObjByNameInArr(Modules, 'storage'),
github = Util.findObjByNameInArr(storage, 'GitHub'),
id = lGitHub && lGitHub.key,
secret = lGitHub && lGitHub.secret,
id = github && github.key,
secret = github && github.secret,
env = process.env,
clientId = env.github_key || id,
clientSecret = env.github_secret || secret;
clientSecret = env.github_secret || secret,
data = qs.stringify({
client_id : clientId,