Skip to content

Commit 4e48c27

Browse files
authored
Update index.html
1 parent 0740b3d commit 4e48c27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/add-map/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h3>My Google Maps Demo</h3>
3131
<!--[END maps_add_map_body]-->
3232
<!-- prettier-ignore -->
3333
<script>(g=>{var h,a,k,p="The Google Maps JavaScript API",c="google",l="importLibrary",q="__ib__",m=document,b=window;b=b[c]||(b[c]={});var d=b.maps||(b.maps={}),r=new Set,e=new URLSearchParams,u=()=>h||(h=new Promise(async(f,n)=>{await (a=m.createElement("script"));e.set("libraries",[...r]+"");for(k in g)e.set(k.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),g[k]);e.set("callback",c+".maps."+q);a.src=`https://maps.${c}apis.com/maps/api/js?`+e;d[q]=f;a.onerror=()=>h=n(Error(p+" could not load."));a.nonce=m.querySelector("script[nonce]")?.nonce||"";m.head.append(a)}));d[l]?console.warn(p+" only loads once. Ignoring:",g):d[l]=(f,...n)=>r.add(f)&&u().then(()=>d[l](f,...n))})
34-
({key: "AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg", v: "weekly"});</script>
34+
({key: "oops", v: "weekly"});</script>
3535
</body>
3636
</html>
37-
<!--[END maps_add_map]-->
37+
<!--[END maps_add_map]-->

0 commit comments

Comments
 (0)