Skip to content

Commit 890f708

Browse files
committed
Fix google drive file picker not initialize properly
1 parent dde6e62 commit 890f708

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

public/js/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,8 @@ ui.toolbar.import.dropbox.click(function () {
11261126
})
11271127
// import from google drive
11281128
function buildImportFromGoogleDrive () {
1129-
FilePicker({
1129+
/* eslint-disable no-unused-vars */
1130+
let picker = new FilePicker({
11301131
apiKey: GOOGLE_API_KEY,
11311132
clientId: GOOGLE_CLIENT_ID,
11321133
buttonEl: ui.toolbar.import.googleDrive,
@@ -1153,6 +1154,7 @@ function buildImportFromGoogleDrive () {
11531154
}
11541155
}
11551156
})
1157+
/* eslint-enable no-unused-vars */
11561158
}
11571159
// import from gist
11581160
ui.toolbar.import.gist.click(function () {

0 commit comments

Comments
 (0)