From 894a7fc8e5012fe446ecfce27de7b9014a1af045 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Thu, 20 Oct 2016 12:22:59 +0800 Subject: Fix gapi not able to reference callback function onGoogleClientLoaded --- public/js/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/js/index.js b/public/js/index.js index d85a0902..4be11e86 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1536,6 +1536,7 @@ function onGoogleClientLoaded() { googleApiAuth(true); buildImportFromGoogleDrive(); } +window.onGoogleClientLoaded = onGoogleClientLoaded; // export to google drive ui.toolbar.export.googleDrive.click(function (e) { var token = gapi.auth.getToken(); -- cgit v1.2.3