|
@@ -400,10 +400,12 @@ PWM_MAIN.handleLoginFormSubmit = function(form, event) {
|
|
|
}
|
|
|
};
|
|
|
PWM_MAIN.ajaxRequest(url,loadFunction,options);
|
|
|
- try {
|
|
|
- grecaptcha.reset(); // reset the
|
|
|
- } catch (e) {
|
|
|
- console.log("error resetting the captcha: " + e)
|
|
|
+ if(typeof grecaptcha != 'undefined'){
|
|
|
+ try {
|
|
|
+ grecaptcha.reset(); // reset the
|
|
|
+ } catch (e) {
|
|
|
+ console.log("error resetting the captcha: " + e)
|
|
|
+ }
|
|
|
}
|
|
|
}});
|
|
|
});
|