#316: fix Edge fails with fetch

This commit is contained in:
SleepWalker 2017-04-12 08:17:56 +03:00
parent 80ca37da2b
commit 27694c7be7

View File

@ -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();