Fix gapi not able to reference callback function onGoogleClientLoaded

This commit is contained in:
Wu Cheng-Han 2016-10-20 12:22:59 +08:00
parent 7ebc84bec0
commit 894a7fc8e5
1 changed files with 1 additions and 0 deletions

View File

@ -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();