lib/onebox/engine/google_maps_onebox.rb in onebox-2.2.12 vs lib/onebox/engine/google_maps_onebox.rb in onebox-2.2.13
- old
+ new
@@ -20,11 +20,10 @@
(@@matchers ||= []) << { key: key, regexp: regexp }
end
end
always_https
-
requires_iframe_origins("https://maps.google.com", "https://google.com")
# Matches shortened Google Maps URLs
matches_regexp :short, %r"^(https?:)?//goo\.gl/maps/"
@@ -174,9 +173,8 @@
@url = response.code == "200" ? uri.to_s : response["Location"]
ensure
http.finish rescue nil
end
end
-
end
end
end