From 81ce3c22ff641efb6421f61f0db721caac76c8c6 Mon Sep 17 00:00:00 2001 From: Yevhenii Kostiuk Date: Sat, 27 Oct 2018 15:55:50 +0300 Subject: [PATCH] fix - Add to favorites not working in IE11 - polyfill needed #12007 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- core/js/js.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/js/js.js b/core/js/js.js index c1b7e205aab..aa8710646e4 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 -- 2.39.5