Skip to content

Commit

Permalink
Merge pull request #12339 from nextcloud/bugfix/12007
Browse files Browse the repository at this point in the history
fix - Add to favorites not working in IE11
  • Loading branch information
rullzer authored Nov 8, 2018
2 parents 66b7adf + 81ce3c2 commit 911321d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/js/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; }; }

0 comments on commit 911321d

Please sign in to comment.