mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(package) rm dropbox
This commit is contained in:
parent
edd2070967
commit
eea2b783f7
2 changed files with 6 additions and 18 deletions
|
|
@ -26,24 +26,13 @@ var CloudCmd, Util, DOM, CloudFunc, Dropbox, cb, Client;
|
|||
function load(callback) {
|
||||
Util.time('dropbox load');
|
||||
|
||||
var src = '//cdnjs.cloudflare.com/ajax/libs/dropbox.js/0.10.2/dropbox.min.js',
|
||||
local = '/node_modules/dropbox/lib/dropbox.js',
|
||||
|
||||
onError = function onError() {
|
||||
Util.time('dropbox load');
|
||||
DOM.load.js(local, onLoad);
|
||||
},
|
||||
|
||||
onLoad = function(){
|
||||
Util.timeEnd('dropbox load');
|
||||
DOM.Images.hide();
|
||||
|
||||
Util.exec(callback);
|
||||
};
|
||||
var src = '//cdnjs.cloudflare.com/ajax/libs/dropbox.js/0.10.2/dropbox.min.js';
|
||||
|
||||
DOM.load.js(src, {
|
||||
onload : onLoad,
|
||||
onerror : onError
|
||||
DOM.load.js(src, function() {
|
||||
Util.timeEnd('dropbox load');
|
||||
DOM.Images.hide();
|
||||
|
||||
Util.exec(callback);
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
"dependencies": {
|
||||
"checkup": "~1.0.2",
|
||||
"console-io": "~1.10.0",
|
||||
"dropbox": "~0.10.0",
|
||||
"execon": "~1.0.1",
|
||||
"express": "~4.10.0",
|
||||
"files-io": "~1.2.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue