Skip to content

Commit

Permalink
Merge pull request #3613 from swagger-api/bug/3586-promise-polyfill-s…
Browse files Browse the repository at this point in the history
…pecies-test

Only polyfill `Promise` if it doesn't exist at all
  • Loading branch information
shockey authored Aug 25, 2017
2 parents f5df9ff + db4aa95 commit e37d4a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/polyfills.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
// Promise global, Used ( at least ) by 'whatwg-fetch'. And required by IE 11
require("core-js/fn/promise")

if(!window.Promise) {
require("core-js/fn/promise")
}

0 comments on commit e37d4a5

Please sign in to comment.