From 32733668ff7a4a94501af616e2fdecf45e29acde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sat, 6 May 2023 21:50:46 +0200 Subject: [PATCH] RVRNEXT-38 do not reference authenticateWithGoogleButton whet it does not exist --- public/static/js/account/account.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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(); + }; + } })();