Skip to content

Commit

Permalink
Merge pull request #613 from mulesoft/CONSOLE-413
Browse files Browse the repository at this point in the history
fix bug from IE CONSOLE-413
  • Loading branch information
marcoskhabie authored Jun 24, 2019
2 parents 1c953ec + 3da553d commit b810527
Show file tree
Hide file tree
Showing 6 changed files with 908 additions and 831 deletions.
5 changes: 5 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ module.exports = function (grunt) {
vendor: {
src: '<%= src.jsVendor %>',
dest: '<%= distdir %>/scripts/<%= pkg.name %>-vendor.js'
},

polyfill: {
src: 'src/common/polyfills/string-polyfills.js',
dest: '<%= distdir %>/scripts/<%= pkg.name %>-polyfills.js'
}
},

Expand Down
1 change: 1 addition & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<link href="styles/api-console-light-theme.css" rel="stylesheet" class="theme">
</head>
<body ng-app="ramlConsoleApp" ng-cloak class="raml-console-body">
<script src="scripts/api-console-polyfills.js"></script>
<raml-initializer></raml-initializer>
<script src="scripts/api-console-vendor.js"></script>
<script src="scripts/api-console.js"></script>
Expand Down
14 changes: 14 additions & 0 deletions dist/scripts/api-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -5333,6 +5333,20 @@ RAML.Inspector = (function() {
}
})();

(function () {
/* jshint -W034 */
'use strict';

if (!String.prototype.startsWith) {
Object.defineProperty(String.prototype, 'startsWith', {
value: function(search, pos) {
pos = !pos || pos < 0 ? 0 : +pos;
return this.substring(pos, pos + search.length) === search;
}
});
}
})();

(function() {
'use strict';

Expand Down
Loading

0 comments on commit b810527

Please sign in to comment.