]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix - Add to favorites not working in IE11 - polyfill needed #12007 12339/head
authorYevhenii Kostiuk <yko@keepit.com>
Sat, 27 Oct 2018 12:55:50 +0000 (15:55 +0300)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 8 Nov 2018 06:43:02 +0000 (07:43 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/js/js.js

index c1b7e205aabdd7cc67f663393447f96355c86361..aa8710646e42f48175ca3600acd875d58d5151c9 100644 (file)
@@ -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