mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
#316: fix Edge fails with fetch
This commit is contained in:
@@ -8,10 +8,12 @@ if (isEdge) {
|
|||||||
// https://github.com/aurelia/fetch-client/issues/81
|
// 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/9370062/
|
||||||
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7773267/
|
// 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();
|
shimPromiseFinaly();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user