Hi guys,
Updating to ATS 3.4.2 I enjoy having to reconfigure email fetching. Being familiar with Google oauth, it was not that bad but I'm stuck at the step where I'm supposed to "Sign in with Google".
1. App is created, with client ID and secret filled in
2. Click "Authorize GMail" button
3. Nothing happens. Litterally.
- no error in console
- no XHR or otherwise request except for the gmail_pressed.png and gmail_focus.png images being loaded.
- tried in current Edge 84.0, Chrome 84.0, Firefox 78.0.2
- Dev tools shows no blocked requests
- I disabled ALL extensions to be on the safe side, although I don't run any security or privacy extension
Due to time constraints, I started debugging a bit and found by adding some console.log that the eventListener added on the Sign-in button was never called for some reason.
I added another click handler calling the same code, using document.getElementById('an_id_added_to_the_button') insted of the original akeeba.System.iterateNodes('button.plgAtsMailFetchGmailButton' + akeeba.System.addEventListener
and from there the click handler was triggered and I was able to complete the sign-in (emails are now fetched).
Just leaving this here as I found it, I could not dig deeper.
Cheers
Yannick