소스 검색

Remove the Google Maps Api key

Amauri CHAMPEAUX 10 년 전
부모
커밋
9f50e41f23
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      tarteaucitron.services.js

+ 1 - 5
tarteaucitron.services.js

@@ -679,11 +679,7 @@ tarteaucitron.services.googlemaps = {
             uniqIds = [],
             i;
         
-        if (tarteaucitron.user.googlemapsApiKey === undefined) {
-            return;
-        }
-        
-        tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&callback=tac_googlemaps_callback&key=' + tarteaucitron.user.googlemapsApiKey);
+        tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&callback=tac_googlemaps_callback');
         
         window.tac_googlemaps_callback = function () {
             tarteaucitron.fallback(['googlemaps-canvas'], function (x) {