diff --git a/public/src/utils.js b/public/src/utils.js index b48b4345ae..930e03501f 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -365,7 +365,9 @@ } return i < 0; }; + } + if (typeof String.prototype.endsWith != 'function') { String.prototype.endsWith = function(suffix) { if (this.length < suffix.length) { return false;