I think I understand what you are suggesting, but I'm not sure if it
fits the problem. Note that in the code I've placed the domain in
lowercase [bullittcountyhistory.org] and then tried to access the page
using lowercase [http://bullittcountyhistory.org/places/places.html]
so there should have  been a match anyway. Also (and forgive my
limited javascript knowledge) isn't the test conducted before the code
reaches location.host, so camelcase would fail before it reached that
step, wouldn't it?

On Dec 10, 12:05 pm, Andrew Leach <[email protected]>
wrote:
> Your key switching code uses location.host, and if Safari honours a
> camel-case domain name, none of your tests will match, so you load the
> API with an empty key.
>
> Try using
>  [location.host.toLowerCase()]
> instead of
>  [location.host]
>
> Andrew

--

You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.


Reply via email to