Skip to content

Commit

Permalink
Keep loading imagery if Wayback imagery fails to load
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Nov 8, 2023
1 parent 72677eb commit f57162b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/renderer/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,16 @@ export function rendererBackground(context) {
}
return fileFetcher.get('imagery');
})
.catch(() => {
return fileFetcher.get('imagery');
})
.then(sources => {
if (_imageryIndex) return _imageryIndex;

// Append Esri World Imagery Wayback sources.
sources.push(..._waybackIndex);
if (_waybackIndex) {
sources.push(..._waybackIndex);
}

_imageryIndex = {
imagery: sources,
Expand Down

0 comments on commit f57162b

Please sign in to comment.