Skip to content

Commit

Permalink
Fixes Recaptcha console error message, XHR warning #1513 (#1543)
Browse files Browse the repository at this point in the history
  • Loading branch information
fragm3 authored and akshatnitd committed Sep 7, 2018
1 parent c84b04f commit 398f368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Expand Up @@ -5,7 +5,7 @@
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script>
<script src="https://www.google.com/recaptcha/api.js?render=explicit" async defer></script>
<!--
Notice the use of %PUBLIC_URL% in the tag above.
It will be replaced with the URL of the `public` folder during the build.
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Expand Up @@ -10,7 +10,7 @@ $.ajax({
dataType: 'json',
crossDomain: true,
timeout: 3000,
async: false,
async: true,
}).done(function(output) {
module.exports.MAP_KEY = output.keys.MAP_KEY;
module.exports.CAPTCHA_KEY = output.keys.CAPTCHA_KEY;
Expand Down

0 comments on commit 398f368

Please sign in to comment.