Always use HTTPS to load Bing Streetside images (#10798)

This commit is contained in:
Kyℓe Hensel
2025-02-22 19:42:04 +11:00
committed by GitHub
parent fb22f01b30
commit fb1bce5a8a
2 changed files with 5 additions and 3 deletions

View File

@@ -122,9 +122,9 @@ function loadNextTilePage(which, url, tile) {
const d = {
loc: loc,
key: bubbleId,
imageUrl: bubble.imageUrl.replace('{subdomain}',
bubble.imageUrlSubdomains[0]
),
imageUrl: bubble.imageUrl
.replace('{subdomain}', bubble.imageUrlSubdomains[0])
.replace(/^http:/, 'https:'), // always use HTTPS (see #10797)
ca: bubble.he || bubble.heading,
captured_at: bubble.vintageEnd,
captured_by: 'microsoft',