google-location-autocomplete-react
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -28,3 +28,3 @@ var __assign = (this && this.__assign) || function () { | ||
var inputRef = useRef(null); | ||
window.initAutocomplete = function () { | ||
var initAutocomplete = function () { | ||
if (inputRef.current && window.google) { | ||
@@ -41,2 +41,3 @@ var autocomplete_1 = new window.google.maps.places.Autocomplete(inputRef.current); | ||
var loadScript = function () { | ||
window.initAutocomplete = initAutocomplete; | ||
var url = "https://maps.googleapis.com/maps/api/js?key=".concat(apiKey, "&libraries=places&callback=initAutocomplete"); | ||
@@ -43,0 +44,0 @@ if (!document.querySelector("script[src=\"".concat(url, "\"]"))) { |
{ | ||
"name": "google-location-autocomplete-react", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"main": "dist/GoogleLocationAutocomplete.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/GoogleLocationAutocomplete.d.ts", |
5391
72