mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-25 22:50:04 +05:30
#316: fix Edge fails with fetch
This commit is contained in:
parent
80ca37da2b
commit
27694c7be7
@ -8,10 +8,12 @@ if (isEdge) {
|
||||
// https://github.com/aurelia/fetch-client/issues/81
|
||||
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/9370062/
|
||||
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7773267/
|
||||
window.fetch = undefined;
|
||||
Reflect.deleteProperty(window, 'fetch');
|
||||
}
|
||||
|
||||
import 'whatwg-fetch';
|
||||
// using require instead of import, because import is hoisting to the top
|
||||
// so that our fetch hack for Edge won't work
|
||||
require('whatwg-fetch');
|
||||
|
||||
shimPromiseFinaly();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user