forked from Botanical/BotanJS
Remove Contact if recaptcha does not exist
This commit is contained in:
parent
3db2ae75e1
commit
ead452777e
@ -104,7 +104,15 @@
|
|||||||
= "purple";
|
= "purple";
|
||||||
|
|
||||||
contact = Dand.id( "menu_cont", true );
|
contact = Dand.id( "menu_cont", true );
|
||||||
contact.addEventListener( "Click", loadContactForm );
|
|
||||||
|
if( window[ "recaptcha" ] )
|
||||||
|
{
|
||||||
|
contact.addEventListener( "Click", loadContactForm );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
contact.element.remove();
|
||||||
|
}
|
||||||
|
|
||||||
Dand.id( "menu", true ).foreach(
|
Dand.id( "menu", true ).foreach(
|
||||||
1, function( e )
|
1, function( e )
|
||||||
|
Loading…
Reference in New Issue
Block a user