Github's window.fetch polyfill in ES6