diff --git a/js/main.js b/js/main.js index bb2f4f60..0431fb09 100644 --- a/js/main.js +++ b/js/main.js @@ -106,12 +106,9 @@ var gdrive = (function($) { 'params' : { 'uploadType' : 'multipart', }, 'headers' : { 'Content-Type' : 'multipart/mixed; boundary="' + boundary + '"', }, 'body' : multipartRequestBody, }); - if (!callback) { - callback = function(file) { - console.log(file); - }; - } - request.execute(callback); + request.execute(function(file) { + console.log(file); + }); }; return gdrive;