mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-23 08:02:39 +00:00
refactor(github) uploadFile
This commit is contained in:
parent
58bf95248d
commit
8d82d4cac5
1 changed files with 4 additions and 2 deletions
|
|
@ -148,8 +148,10 @@ var CloudCmd, Util, DOM, CloudFunc, Github, cb;
|
|||
options.files = files;
|
||||
|
||||
gist.create(options, function(error, data) {
|
||||
Util.log(error || data);
|
||||
Util.log(data && data.html_url);
|
||||
if (error)
|
||||
Util.log(error || data);
|
||||
else
|
||||
Util.logArray([data, data.html_url]);
|
||||
|
||||
Util.exec(callback);
|
||||
DOM.Images.hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue