diff --git a/core/js/js.js b/core/js/js.js index c1b7e205aabdd..aa8710646e42f 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -2491,3 +2491,9 @@ jQuery.fn.tipsy = function(argument) { } return this; }; + +/** + * Add to favorites not working in IE11 - polyfill needed #12007 + * @link https://github.com/nextcloud/server/issues/12007 + */ +if (!String.prototype.startsWith) { String.prototype.startsWith = function(searchString, position) { position = position || 0; return this.indexOf(searchString, position) === position; }; } \ No newline at end of file