diff --git a/public/static/js/account/account.js b/public/static/js/account/account.js index f78622a..81eda87 100644 --- a/public/static/js/account/account.js +++ b/public/static/js/account/account.js @@ -59,11 +59,10 @@ var Account = { }; (function () { - document.getElementById('authenticateWithGoogleButton').onclick = function () { - Account.openGoogleAuthenticate(); - }; - - document.getElementsByTagName('form')[0].onreset = function () { - Account.resetGoogleAuthentication(); - }; + var authenticateWithGoogleButton = document.getElementById('authenticateWithGoogleButton'); + if (authenticateWithGoogleButton) { + authenticateWithGoogleButton.onclick = function () { + Account.openGoogleAuthenticate(); + }; + } })();