Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix - Add to favorites not working in IE11 - polyfill needed #12007
  • Loading branch information
yko-keepit committed Oct 27, 2018
commit 67a26df82dd3cddf38121acfae06c1436a9f741b
6 changes: 6 additions & 0 deletions core/js/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -2428,3 +2428,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; }; }