I don't receive an error, but the Javascript code just stops executing when I run the following function:
function initGoogleURL() {
gapi.client.setApiKey(myAPIKey);
gapi.client.load('urlshortener', 'v1').then(function(value) {
console.log("success!");
googleReady = true; // Success!
}, function(reason) {
console.log(reason); // Error!
});
}
I don't see a message in the console. And the rest of the code stops executing, even though it's not dependent on this path of execution.
Any ideas why this is happening?