We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9754702 commit a60b0e8Copy full SHA for a60b0e8
app/code/Magento/PageBuilder/view/base/web/js/utils/map.js
@@ -18,7 +18,7 @@ define([
18
var google = window.google || {},
19
20
/**
21
- * Generates a google map usuable latitude and longitude object
+ * Generates a google map usable latitude and longitude object
22
*
23
* @param {Object} position
24
* @return {google.maps.LatLng}
@@ -49,6 +49,11 @@ define([
49
return;
50
}
51
52
+ // If Google Maps isn't loaded don't try init the map, it won't work
53
+ if (typeof google.maps === 'undefined') {
54
+ return;
55
+ }
56
+
57
58
* Just in case of a bad JSON that bypassed validation
59
*/
0 commit comments