summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
authorWu Cheng-Han2017-03-23 20:17:50 +0800
committerWu Cheng-Han2017-03-23 20:17:50 +0800
commit890f7089bf2efaafdb51c976f14db6102dab2b3c (patch)
treeb07d70f63e96425b07a3adf9a1a82965df672c2e /public/js/index.js
parentdde6e622a4de07059a417436c42ce4df44aa43f7 (diff)
Fix google drive file picker not initialize properly
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 7d17d0fc..520850f0 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -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 () {