mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* Patch node-fetch with promise behavior from bluebird per docs * Remove node-fetch promise behavior and promise/fetch finally block. Not supported on IE/Edge!
This commit is contained in:
parent
578a853ffa
commit
5070290d1b
1 changed files with 9 additions and 3 deletions
|
@ -154,9 +154,15 @@ export class EMSClientV66 {
|
|||
);
|
||||
fetch(url)
|
||||
.then(
|
||||
response => resolve(response),
|
||||
err => reject(err)
|
||||
).finally(() => clearTimeout(timer));
|
||||
response => {
|
||||
clearTimeout(timer);
|
||||
resolve(response);
|
||||
},
|
||||
err => {
|
||||
clearTimeout(timer);
|
||||
reject(err);
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue