Created
March 15, 2019 15:44
-
-
Save Karthik-B-06/d2afb55bef22afb214d5770a7dc24f90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async driveIconClicked() { | |
| console.log("Clicked"); | |
| await gapi.load("auth2", () => { | |
| console.log("Auth2 Loaded"); | |
| gapi.auth2.authorize( | |
| { | |
| client_id: this.clientId, | |
| scope: this.scope, | |
| immediate: false | |
| }, | |
| this.handleAuthResult | |
| ); | |
| }); | |
| gapi.load("picker", () => { | |
| console.log("Picker Loaded"); | |
| this.pickerApiLoaded = true; | |
| this.createPicker(); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment