Skip to content

Commit

Permalink
Merge pull request #140 from grodriguez85/main
Browse files Browse the repository at this point in the history
Return the `google` global from the API service if Google Maps has already been loaded
  • Loading branch information
sandydoo authored Aug 24, 2021
2 parents f3e9e54 + 79ec86a commit 8d8a3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/services/google-maps-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class GoogleMapsApiService extends Service {
}

if (window?.google?.maps) {
return resolve(window.google.maps);
return resolve(window.google);
}

let config = this._getConfig();
Expand Down

0 comments on commit 8d8a3c1

Please sign in to comment.