Skip to content

Commit cfc7b1a

Browse files
authored
Merge pull request #3930 from floriantraber/bug/3571-oas-3.0-doesnt-render-in-ie11-startsWith-function-missing
Fixes #3571 - add polyfill for startsWith function for IE11.
2 parents 2ad1bac + e2d0bd7 commit cfc7b1a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/polyfills.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
if(!window.Promise) {
44
require("core-js/fn/promise")
55
}
6+
7+
// Required by IE 11
8+
if(!String.prototype.startsWith) {
9+
require("core-js/es6/string")
10+
}

0 commit comments

Comments
 (0)