Skip to content

Commit

Permalink
close selector bracket in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ErrorPro committed Aug 26, 2021
1 parent 51af9ff commit e326dae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var loadGoogleMapScript = function loadGoogleMapScript(googleMapsScriptBaseUrl,
if (google.maps && google.maps.api) return Promise.resolve();
}

var scriptElements = document.querySelectorAll("script[src*=\"".concat(googleMapsScriptBaseUrl, "\""));
var scriptElements = document.querySelectorAll("script[src*=\"".concat(googleMapsScriptBaseUrl, "\"]"));

if (scriptElements && scriptElements.length) {
return new Promise(function (resolve) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-google-autocomplete",
"version": "2.4.1",
"version": "2.4.2",
"description": "React component for google autocomplete.",
"main": "index.js",
"types": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const loadGoogleMapScript = (
}

const scriptElements = document.querySelectorAll(
`script[src*="${googleMapsScriptBaseUrl}"`
`script[src*="${googleMapsScriptBaseUrl}"]`
);

if (scriptElements && scriptElements.length) {
Expand Down

0 comments on commit e326dae

Please sign in to comment.