From 890f7089bf2efaafdb51c976f14db6102dab2b3c Mon Sep 17 00:00:00 2001
From: Wu Cheng-Han <jacky_cute0808@hotmail.com>
Date: Thu, 23 Mar 2017 20:17:50 +0800
Subject: [PATCH] Fix google drive file picker not initialize properly

---
 public/js/index.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/public/js/index.js b/public/js/index.js
index 7d17d0f..520850f 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 () {