Started getting an error from the Google sign in script all of a sudden.
Error at _.$e in https://accounts.google.com/gsi/client
It seems like Google has changed the type of renderButton width from string to number.
Broken:
window.google.accounts.id.renderButton(button, {width: '200'});
Working:
window.google.accounts.id.renderButton(button, {width: 200});
They haven't updated the documentation: https://developers.google.com/identity/gsi/web/reference/js-reference#width
The recent update broke it if you specified the button width in a string format without the 'px' suffix.
window.google.accounts.id.renderButton(button, {width: '300px'});
should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With