Fix google drive file picker not initialize properly

This commit is contained in:
Wu Cheng-Han 2017-03-23 20:17:50 +08:00
parent dde6e622a4
commit 890f7089bf

View file

@ -1126,7 +1126,8 @@ ui.toolbar.import.dropbox.click(function () {
}) })
// import from google drive // import from google drive
function buildImportFromGoogleDrive () { function buildImportFromGoogleDrive () {
FilePicker({ /* eslint-disable no-unused-vars */
let picker = new FilePicker({
apiKey: GOOGLE_API_KEY, apiKey: GOOGLE_API_KEY,
clientId: GOOGLE_CLIENT_ID, clientId: GOOGLE_CLIENT_ID,
buttonEl: ui.toolbar.import.googleDrive, buttonEl: ui.toolbar.import.googleDrive,
@ -1153,6 +1154,7 @@ function buildImportFromGoogleDrive () {
} }
} }
}) })
/* eslint-enable no-unused-vars */
} }
// import from gist // import from gist
ui.toolbar.import.gist.click(function () { ui.toolbar.import.gist.click(function () {