Skip to content

Commit

Permalink
Wrap standard window fetch prior to passing to ems-client
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Mar 30, 2020
1 parent 895aae5 commit 935d24b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/legacy/ui/public/vis/map/service_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ uiModules
tileApiUrl: mapConfig.emsTileApiUrl,
htmlSanitizer: $sanitize,
landingPageUrl: mapConfig.emsLandingPageUrl,
fetchFunction: fetch,
// Wrap to avoid errors passing window fetch
fetchFunction: function(...args) {
return fetch(...args);
},
});
}

Expand Down

0 comments on commit 935d24b

Please sign in to comment.