From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Mon, 22 Aug 2022 13:19:52 +0000 (-0600) Subject: fix maps javascript api deprecation warning. (#914) X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~1^2~184 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=aa2e4a27370a0528d13e10c390d7eab0a293a2cd;p=gpsbabel.git fix maps javascript api deprecation warning. (#914) js: google.maps.event.addDomListener() is deprecated, use the standard addEventListener() method instead: https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener --- diff --git a/gui/gmapbase.html b/gui/gmapbase.html index af37b8168..15a50f8be 100644 --- a/gui/gmapbase.html +++ b/gui/gmapbase.html @@ -155,7 +155,7 @@ function setupWebChannel() { } } -google.maps.event.addDomListener(window, "load", initialize); +window.addEventListener("load", initialize);