diff --git a/src/factories/GClient.factory.js b/src/factories/GClient.factory.js index 4d00abc..ddc218a 100644 --- a/src/factories/GClient.factory.js +++ b/src/factories/GClient.factory.js @@ -1,11 +1,11 @@ (function() { 'use strict'; - angular.module('angular-google-gapi').factory('GClient', ['$document', '$q', '$window', - function ($document, $q, $window) { + angular.module('angular-google-gapi').factory('GClient', ['$document', '$q', '$window', '$timeout', + function ($document, $q, $window, $timeout) { var LOAD_GAE_API = false; var LOADING_GAE_API = false; - var URL = 'https://apis.google.com/js/client.js?onload=_gapiOnLoad'; + var URL = 'https://apis.google.com/js/client:platform.js?onload=_gapiOnLoad'; var API_KEY = null; var OBSERVER_CALLBACKS = [];