From 935d24bb09d5985ba34cb84227af689e8bf60615 Mon Sep 17 00:00:00 2001 From: Aaron Caldwell Date: Mon, 30 Mar 2020 14:55:03 -0600 Subject: [PATCH] Wrap standard window fetch prior to passing to ems-client --- src/legacy/ui/public/vis/map/service_settings.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/legacy/ui/public/vis/map/service_settings.js b/src/legacy/ui/public/vis/map/service_settings.js index d26730266cd57..a014aeb182c67 100644 --- a/src/legacy/ui/public/vis/map/service_settings.js +++ b/src/legacy/ui/public/vis/map/service_settings.js @@ -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); + }, }); }