Skip to content

Instantly share code, notes, and snippets.

@eclipseo
Last active August 20, 2022 17:57
Show Gist options
  • Save eclipseo/a46087dfac3227367a51d44e06d97362 to your computer and use it in GitHub Desktop.
Save eclipseo/a46087dfac3227367a51d44e06d97362 to your computer and use it in GitHub Desktop.
!function(a){"use strict";function b(a,b){var c=a[b];a[b]=function(){return P.resolve(c.apply(this,arguments))}}a.fetch=function(a){return function(b){return P.resolve(a.apply(this,arguments))}}(fetch),[a.Response,a.Request].forEach(function(a){a&&a.prototype&&"arrayBuffer blob formData json text".split(" ").forEach(function(c){a.prototype[c]&&b(a.prototype,c)})})}("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment