Skip to content
Snippets Groups Projects
Commit b761c8fe authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] website: prevent warning on each google map snippet initialization

Some part of the google map API was deprecated and showed a warning
at each snippet redraw. Probably harmless but since the related API are
really capricious, best satisfy them as much as possible, even in
stable versions.

opw-2976261

Part-of: odoo/odoo#105072
parent a5282701
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ publicWidget.registry.GoogleMap = publicWidget.Widget.extend({
map.setCenter(gps);
// Update Map on screen resize
google.maps.event.addDomListener(window, 'resize', () => {
window.addEventListener('resize', () => {
map.setCenter(gps);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment