neo.mjs 4.8.3 → 4.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -161,9 +161,12 @@ class GoogleMaps extends Base {
|
|
161
161
|
* @protected
|
162
162
|
*/
|
163
163
|
loadApi() {
|
164
|
-
let key = Neo.config.googleMapsApiKey
|
164
|
+
let key = Neo.config.googleMapsApiKey,
|
165
|
+
url = ' https://maps.googleapis.com/maps/api/js';
|
165
166
|
|
166
|
-
|
167
|
+
window.foo = Neo.emptyFn;
|
168
|
+
|
169
|
+
DomAccess.loadScript(`${url}?key=${key}&v=weekly&callback=Neo.emptyFn`).then(() => {
|
167
170
|
console.log('GoogleMaps API loaded');
|
168
171
|
})
|
169
172
|
}
|