From 1754f15e9fe8197c4865efb8df8998745f001f72 Mon Sep 17 00:00:00 2001 From: Carlos Penaloza Date: Tue, 17 Apr 2018 10:05:45 -0500 Subject: [PATCH] Code review HomePage --- imports/ui/pages/HomePage.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imports/ui/pages/HomePage.jsx b/imports/ui/pages/HomePage.jsx index b0a725f..81530d3 100644 --- a/imports/ui/pages/HomePage.jsx +++ b/imports/ui/pages/HomePage.jsx @@ -13,7 +13,7 @@ export default class HomePage extends React.Component { this.handleClick = this.handleClick.bind(this); this.search = this.search.bind(this); } - +// Es recomendado guardar las llaves en variables de entorno y no en el código handleClick() { fetch("https://www.googleapis.com/geolocation/v1/geolocate?key=AIzaSyA1hR7bNT1ZIhNGm1eHDGcXUPOB3bIMPo4", { method: "POST" @@ -143,4 +143,4 @@ export default class HomePage extends React.Component { ); } -} \ No newline at end of file +}