Skip to content

Instantly share code, notes, and snippets.

@eclipseo
Last active August 20, 2022 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eclipseo/4848789ce638365f30d405635b2fc3d5 to your computer and use it in GitHub Desktop.
Save eclipseo/4848789ce638365f30d405635b2fc3d5 to your computer and use it in GitHub Desktop.
bluebird.min.js
!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