Check for grecaptcha availibility

This commit is contained in:
2015-10-19 23:16:47 +08:00
parent dedb6bdae2
commit 8f05e37ee4
3 changed files with 15 additions and 1 deletions
@@ -691,10 +691,18 @@
if( !loggedIn )
{
var limit = 5;
var i = 0;
var reUUID = Perf.uuid;
Cycle.perma(
reUUID, function()
{
if( limit < i ++ )
{
var mesg = Dand.glass( "c_so_sorry" );
if( mesg.length ) mesg[0].style.display = "block";
}
if( Recaptcha = window["grecaptcha"] )
{
Cycle.permaRemove( reUUID );