mirror of https://github.com/status-im/codimd.git
Fix google drive file picker not initialize properly
This commit is contained in:
parent
dde6e622a4
commit
890f7089bf
|
@ -1126,7 +1126,8 @@ ui.toolbar.import.dropbox.click(function () {
|
|||
})
|
||||
// import from google drive
|
||||
function buildImportFromGoogleDrive () {
|
||||
FilePicker({
|
||||
/* eslint-disable no-unused-vars */
|
||||
let picker = new FilePicker({
|
||||
apiKey: GOOGLE_API_KEY,
|
||||
clientId: GOOGLE_CLIENT_ID,
|
||||
buttonEl: ui.toolbar.import.googleDrive,
|
||||
|
@ -1153,6 +1154,7 @@ function buildImportFromGoogleDrive () {
|
|||
}
|
||||
}
|
||||
})
|
||||
/* eslint-enable no-unused-vars */
|
||||
}
|
||||
// import from gist
|
||||
ui.toolbar.import.gist.click(function () {
|
||||
|
|
Loading…
Reference in New Issue