From: Matthias Schmidt Date: Sat, 3 Feb 2018 08:12:06 +0000 (+0100) Subject: Fire event for Google Maps authentication error X-Git-Tag: 3.1.0_RC_3~5^2^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=513029ce0e49992401acedea6b7215d1d1eb79a8;p=GitHub%2FWoltLab%2FWCF.git Fire event for Google Maps authentication error Close #2526 --- diff --git a/wcfsetup/install/files/js/WCF.Location.js b/wcfsetup/install/files/js/WCF.Location.js index 3d9ac38201..4b7008ef21 100644 --- a/wcfsetup/install/files/js/WCF.Location.js +++ b/wcfsetup/install/files/js/WCF.Location.js @@ -43,6 +43,14 @@ WCF.Location.Util = { */ WCF.Location.GoogleMaps = { }; +/** + * After an authentican error, Google Maps tries to call the `gm_authFailure` function. + * (see https://developers.google.com/maps/documentation/javascript/events#auth-errors) + */ +function gm_authFailure() { + WCF.System.Event.fireEvent('com.woltlab.wcf.googleMaps', 'authenticationFailure'); +}; + /** * Handles the global Google Maps settings. */